I have a c# win forms program and after I click a button it launches a windows application and then when I'm done, I want to close the app and return to my win form. When I close the launched app, my win form always seems to get pushed all the way to the back and I have to hunt for it. Any ideas?
var process1 = new System.Diagnostic...
I'm currently working on a Windows Forms GUI and I have a Combo that I need to display a list of string values as the DisplayMembers and use a list of user defined enum values as the ValueMember. I'm currently returning a List> from my database access function and I would like to bind this to my Combo box. I've tried assigning the list t...
Hello, guys!
I wonder if there is a possibility to (visually and functionally) link two controls(components)? (.NET2)
Simplifying the things, I have two labels - one of them is the main label (it can be deplaced with the mouse) and an other - the description label - it needs to follow the main label on a specified distance.
Also, the...
I need to validate a control input on losing focus. Normally I'd use the Validating event. However this process involves checking the entered data against a local database of over 280,000 postal codes. I'd like for this validation to occur asynchronously since there is no requirement for the user to wait for it before they can enter the ...
I'm trying to move a form smoothly using code given on question http://stackoverflow.com/questions/967968/how-to-smoothly-animate-windows-forms-location-with-different-speeds
But for some reason my this.Invalidate() call will never fire up the OnPaint event. Is there some configuration that's required on the form for this to be possible...
Hi - I am trying to read an XML file using LINQ. I have had no problem reading and parsing simple XML files but this one has me stumped.
Here is a portion of the file: The file is properly formed and valid.
<Activities>
<Activity Sport="Other">
<Id>2009-12-17T19:53:14Z</Id>
<Lap StartTime="2009-12-17T19:53:14Z">
...
Hi there, I'm having a weird behaviour with a left-aligned TabControl in VB.NET. Screenshot:
What I wanted was to have the tabs literally the same way they would be if rotated 90 degrees to the left.
Does it have something to do with the fact I'm not (god forbid) using the standard XP theme? Any solution to just make it work? (Even...
Hello,
I have assisted with an application that has a couple of thousand deployments. This application is a .NET 2 Winforms application.
There are a couple of features that require the application to "phone home" to some custom web services that we have written to update product information.
For several years this has worked fin...
When using a Delegate, I can use Delegate.GetInvocationList() Method to retrieve the invocation list of the delegate at runtime.
Is there a way to access the subscriber list that has been associated with an event? I ran the code from this example (SO#1237001) and the immediate window allowed me to cast the SecondChange event to a System...
I have a simple screensaver that I've written, which has been deployed to all of our company's client PCs.
As most of our PCs have dual monitors, I took care to ensure that the screensaver ran on both displays.
This works fine, however on some systems, where the primary screen has been swapped (to the left monitor), the screensaver onl...
I have a Winforms app in C# that calls calls a method asynchronously and uses a callback.
I would like to display an animated gif to let the end user know that work is being done.
I would like to have the animated gif hover over the center of the form.
How can I do this?
Update:
Thanks. I guess the step I was missing was to use a Pict...
I am currently designing a user control which will have other controls contained within it. I would like to be able to control the region in which the they are rendered (similar to Graphics.SetClip).
Ideally I would like to beable to have them render to an off screen image which I then present to the user as I choose. The last resort ...
I have a treeview control, and it's child node is mapped to element in a list, when the element in the list state changes, i need to update the corresponding treeview node, also, when user select a treenode, i can map to the element in the list, what's the best way to record the mapping?
...
How can I define a dynamic array in C#?
...
Here it says that MMC 3.0 provides Windows forms hosting capability. However all examples and resources are .NET framework targeted. So I wonder where this capability exists - native level or managed wrapper level? I know of Microsoft.ManagementConsole.dll but that is the managed world. Does MMC 3.0 really support Windows Forms natively ...
I'm trying to implement Authorization and Authentication in my current winforms project. The Authentication also has to match a user in an SQL Server 2008 database. The thing is, it's a multi-user program, so when a new user is added, a database is created and the users identity added to the database.
I wondered if that is possible im...
hi, i want declare on form as global variable and then work with that in app. i dont want use below method to access app forms.
Form1 myForm = new Form1();
anyone have any idea?
thanks
...
Hi All,
I've read a lot of articles about the UI ,buisness logic ,WCF ,IoC, but still, one thing is missing from my mind.
I build a winforms application and a console app. the Console App is the brain.
Now, in all the client-server architecture the client "know" the server , send him request and get the answer. My qestion is as follow:
...
Dear friends
I have a problem with merge the datagridview headers in winForm.
I using this code :
void dataGridView1_Paint(object sender, PaintEventArgs e)
{
Rectangle r1 = dataGridView1.GetCellDisplayRectangle(2, -1, true);
Rectangle r2 = dataGridView1.GetCellDisplayRectangle(3, -1, true);
r1.X += 1;
...
I have three ComboBoxes on my form. What is the event so that if an item in Combobox1 is selected, the options in ComboBox2 and ComboBox3 change.
...