How to find out if a user installed my software successfully?
I want to know how many users installed my software successfully. But: I do not want to open a website link after installation. ...
I want to know how many users installed my software successfully. But: I do not want to open a website link after installation. ...
My form has several textboxes and several buttons. The textboxes are loaded with data by the load event. If I make changes to the textboxes and then move the cursor over a button, the textboxes are suddenly loaded again with the original information. I don't click a button. I just move the mouse over one. Why is this happening and h...
buildLetter.Append("</head>").AppendLine(); buildLetter.Append("").AppendLine(); buildLetter.Append("<style type="text/css">").AppendLine(); Assume the above contents resides in a file. I want to write a snippet that removes any line which has empty string "" and put escape character before the middle quotations. The final output would...
I have a class that contain a List of another class, and that class contains a list of string, for example: class A { public list<B> temp; } class B { public list<string> st; } I want to add an of list<B> in class A to one column of a ListView. i have several list of string in one class i want to add each of lists to one clumn in...
Environment: .net 3.5 WinForms application I am looking for some ideas how to stop / interrupting a Windows Form application, e.g. when “something” takes too long. A typical scenario is reading large amount of data from a backend system and the user shall be able to press some key immediately stopping the loading. Normal events are no...
My application's notification icon shows and hides the main application window accordingly. However, when a modal dialog is opened (this can be the About dialog or Settings dialog, to name a few) I want to the modal dialog to gain focus instead of showing/hiding the main application window. The modal dialogs are opened with form.ShowDia...
Quite often in my GUI code, I write something like this: private void SecondTimer_Elapsed(object sender, ElapsedEventArgs e) { if (progressBar1.InvokeRequired) { progressBar1.BeginInvoke(new ElapsedEventHandler(SecondTimer_Elapsed), new[] {sender, e}); return; } //Code goes here } Of course, this is necessary i...
Hi, I have a user control with a textbox in a win forms application. I would like to change the property of that textbox using the properties window of visual studio . I am using that control in various forms of same project ,is it possible? I have set the modifier property of text box as public and set following property in the user con...
i would like to load xml into dataset with only 2 columns (name, price) <?xml version="1.0" encoding="utf-8" ?> <file> <record> <name>A</name> <address>B</address> <date>12-12-2010</date> <price>100</price> </record> <record> <name>B</name> <address>C</address> <date>01-01-1999</date> <price>23</price> </...
I have a custom object type which has to be editable in PropertyGrid: public class CustomObjectType { public string Name { get; set; } public List<CustomProperty> Properties {get; set;} } Which has a list of custom properties: public class CustomProperty { public string Name { get; set; } public string Desc { ...
I am writing a Windows Forms application which is growing and becoming quite extensive. Initially I thought that a separate project for graphical components and one for business logic and one for data access would be the best approach. As the application gets larger I'm beginning to think that a more modular approach would be cleaner.....
I'm trying to implement a simple "zoom to point" functionality in WinForms. When the mouse is at the same point and the mouse wheel is scrolled in/out, it works great. When the mouse position is changed between scrolls, it jumps to that position and is very wonky. Here's the code for the control that you can add to a Form for testing: p...
I have three forms: A, B and C. Upon a button being clicked, A displays B. Similarly, B displays C. Both using the ShowDialog() method. However when I use the Hide() method (inside a Button Click event) on form C to close it, form B also closes. Why would this be? As far as I can see, it shouldn't be doing this. I certainly didn't wri...
I have winform application written in c#. I would like this application to only gets installed in a single machine e.g. M1. If a user tries to install the application in M2, he/she will get an error says "installation aborted due to .... etc". I will have to check MAC Address and Machine Name, if they match the one hard-coded in the app...
I try to create aplication with Ninject. I have one MainForm and dialog form for settings. How should i implement this? Should MainForm have a Kernel instance and then create SettingsForm with Get() method? Or should MainForm constructor have parameter with SettingsForm instance? I tried find some example of WinForm application with nin...
I'm using winforms and vb.net. When I right click on a textbox I get the copy/paste/etc popup menu. This is ok. But How can I add something to this menu, and where/how would I intercept the event when one would click on the Item I add to it? ...
I need to get the host name currently running the application. Any idea? ...
I need to instantiate a Winform within another project. How is this done? I am currently attempting to chain the default constructor. It seems that my custom constructor is not called. Also.. the entry point for this application will not be in the project that owns this form. Meaning the following will not run: Application.EnableVisua...
Hi. I am developing a simple backgammon. i Designed 3 pictures for the game. black not as png format white not ==>png format board jpg I have some questions about designing the game. I want to create it with .NET Framework 4, probably under windows I'm a bit familiar with WPF but not much. what is the best way for putting png nut o...
I'm using PropertyGrid to edit an object containing a collection. Collection is edited using the CollectionEditor. I have to make sure elements in collection are unique. How can I add validation to CollectionEditor: By either overloading CollectionEditor's OnFormClosing Or adding validation for creating/editing items? ...