Top "Winforms" questions

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

Playing a MP3 file in a WinForm application

I am developing a WinForm application. I want to play a MP3 file when the user clicks a button. The …

c# .net winforms mp3
Centering controls within a form in .NET (Winforms)?

I'm trying to center a fixed size control within a form. Out of interest, is there a non-idiotic way of …

c# .net winforms center-align
How to close form

Ok, so a Windows Forms class, WindowSettings, and the form has a "Cancel"-button. When the user clicks the button, …

c# winforms button formclosing
Use of Application.DoEvents()

Can Application.DoEvents() be used in C#? Is this function a way to allow the GUI to catch up with …

c# winforms doevents
How can I disable a tab inside a TabControl?

Is there a way to disable a tab in a TabControl?

c# winforms tabcontrol
Clear image on picturebox

How can I clear draw image on picturebox? The following doesn't help me: pictbox.Image = null; pictbox.Invalidate(); Please help. …

c# .net winforms picturebox
How do I add a ToolTip to a control?

I have some controls that I would like to display a ToolTip for when the mouse is hovering over it. …

c# winforms tooltip
How can I make a DateTimePicker display an empty string?

I would like to be able to display a DateTimePicker that has a default value of nothing, i.e. no …

.net winforms datetimepicker
How can I set the opacity or transparency of a Panel in WinForms?

I was wondering how to change or modify the transparency of a Panel in C#, not the whole form, but …

.net winforms transparency panel opacity
Populate a datagridview with sql query results

I'm trying to present query results, but I keep getting a blank data grid. It's like the data itself is …

c# winforms datagridview