Archives for Windows Form
Using the DateTimePicker Control in Windows Forms
In the world of Windows Forms, the DateTimePicker control holds a special place. This versatile control allows users to select dates and times and can be customized to suit a…
Keyboard Events
When you want to handle events when pressing keys in the keyboard, you can handle the KeyPress, KeyDown, and KeyUp events. The KeyDown event occurs when a keyboard key is pressed down and the KeyUp event occurs after…
User Controls
You can create your own controls if you don’t find what you want from the list of predefined controls available in .NET. You may need to create your own control…
Mouse Events
You can use several special events to react to certain mouse interactions to the control. You have seen the Click event which occurs when the a control is clicked by the mouse…
SaveFileDialog Control
The Save File Dialog control () allows you to save or write data to a specified file. The dialog allows you to browse your file system and pick a directory, then type…
OpenFileDialog Control
The Open File Dialog control () allows you to open and read file contents such as texts from text files. The dialog allows you to browse your file system and pick a…
FolderBrowserDialog Control
The Folder Browser Dialog control () allows you to browse for a directory in your system. The control uses a tree view to show all the folders. The Browser shows the Desktop…
FontDialog Control
The Font Dialog control () is a handy control for selecting different kinds of font and font-related properties. font dialog box Using the Font Dialog, you can change the font type, style,…
ColorDialog Control
The Color Dialog () is used when you want to pick different colors. For example, when you want to pick a color of the font or a background color for the form,…
Dialogs
Dialogs are windows that have a certain specific function such as saving or opening a file, choosing a color, or printing a document. The .NET framework offers the dialog controls which…