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 you show animated GIFs on a Windows Form (c#)

I have a form showing progress messages as a fairly long process runs. It's a call to a web service …

c# winforms animated-gif
Invoke(Delegate)

Can anybody please explain this statement written on this link Invoke(Delegate): Executes the specified delegate on the thread that …

c# winforms delegates invoke
How do I automatically scroll to the bottom of a multiline text box?

I have a textbox with the .Multiline property set to true. At regular intervals, I am adding new lines of …

c# winforms textbox scroll
How to add a line to a multiline TextBox?

How can i add a line of text to a multi-line TextBox? e.g. pseudocode; textBox1.Clear(); textBox1.Lines.Add("1000+"); …

c# winforms textbox
How do you automatically resize columns in a DataGridView control AND allow the user to resize the columns on that same grid?

I am populating a DataGridView control on a Windows Form (C# 2.0 not WPF). My goal is to display a grid …

c# winforms datagridview
c# open a new form then close the current form?

For example, Assume that I'm in form 1 then I want: Open form 2( from a button in form 1) Close form 1 Focus …

c# winforms forms
How to add browse file button to Windows Form using C#

I want to select a file on the local hard disk when I click a "Browse" button. I don't have …

c# winforms
DataGridView - how to set column width?

I have a WinForms application with DataGridView control. My control has five columns (say "Name", "Address", "Phone" etc) I am …

.net winforms datagridview controls
How to return a value from a Form in C#?

I have a main form (let's call it frmHireQuote) that is a child of a main MDI form (frmMainMDI), that …

c# .net winforms parameter-passing
DateTimePicker: pick both date and time

Is it possible to use DateTimePicker (Winforms) to pick both date and time (in the dropdown)? How do you change …

c# .net winforms