Top "Winforms" questions

WinForms is the informal name given to Windows Forms, a GUI class library in the Microsoft .NET Framework and Mono.

How to auto resize and adjust Form controls with change in resolution

I have noticed that some applications change their controls position to adjust them as much as possible in the resolution …

c# winforms user-interface resize screen-resolution
Get a Windows Forms control by name in C#

I have a ToolStripMenuItem called myMenu. How can I access this like so: /* Normally, I would do: */ this.myMenu... etc. /* …

c# winforms string controls accessibility
Selecting a row in DataGridView programmatically

How can I select a particular range of rows in a DataGridView programmatically at runtime?

c# .net winforms datagridview
How to get ALL child controls of a Windows Forms form of a specific type (Button/Textbox)?

I need to get all controls on a form that are of type x. I'm pretty sure I saw that …

c# .net vb.net winforms controls
Using FileSystemWatcher to monitor a directory

I am using a Windows Forms Application to monitor a directory and move the files dropped in it to another …

c# winforms io copy filesystemwatcher
How can I make a .NET Windows Forms application that only runs in the System Tray?

What do I need to do to make a Windows Forms application run in the System Tray? Not an application …

c# .net winforms system-tray
Datagridview: How to set a cell in editing mode?

I need to programmatically set a cell in editing mode. I know that setting that cell as CurrentCell and then …

c# winforms .net-3.5 datagridview
How to make a window always stay on top in .Net?

I have a C# winforms app that runs a macro in another program. The other program will continually pop up …

c# .net winforms
How to stop BackgroundWorker correctly

I have a form with 2 comboboxes on it. And I want to fill combobox2.DataSource based on combobox1.Text and …

c# .net winforms backgroundworker
Changing the default icon in a Windows Forms application

I need to change the icon in the application I am working on. But simply browsing for other icons from …

c# visual-studio winforms