Top "Winforms" questions

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

How do I make a textbox that only accepts numbers?

I have a windows forms app with a textbox control that I want to only accept integer values. In the …

c# .net winforms textbox
ComboBox: Adding Text and Value to an Item (no Binding Source)

In C# WinApp, how can I add both Text and Value to the items of my ComboBox? I did a …

c# winforms combobox
How do I create a message box with "Yes", "No" choices and a DialogResult?

I want to make simple Yes/No choiced MessageBox, but I think it is nonsense to design a form for …

c# winforms dialogresult
How to add a new row to datagridview programmatically

if add row to DataTable DataRow row = datatable1.NewRow(); row["column2"]="column2"; row["column6"]="column6"; datatable1.Rows.Add(row); How …

c# winforms datagridview row
How do I update the GUI from another thread?

Which is the simplest way to update a Label from another Thread? I have a Form running on thread1, and …

c# .net multithreading winforms user-interface
How do I set the selected item in a comboBox to match my string using C#?

I have a string "test1" and my comboBox contains test1, test2, and test3. How do I set the selected item …

c# winforms combobox
How to properly exit a C# application?

I have a published application in C#. The problem here is whenever I close the main form by clicking on …

c# winforms exit
Load image from resources area of project in C#

I have an image in my project stored at Resources/myimage.jpg. How can I dynamically load this image into …

c# image winforms load
Get current folder path

I want to create a program that converts files. I would like the user to be able to place the …

c# .net winforms path
How can I save application settings in a Windows Forms application?

What I want to achieve is very simple: I have a Windows Forms (.NET 3.5) application that uses a path for …

c# xml winforms configuration-files application-settings