C#.NET Code Snippets

c# tablelayoutpanel
Arranging controls in table layout panel, cell span, row span
Developing Windows Application in .NET
A windows application is an application that runs on windows desktop.
Windows Application Form
A windows form is used to design and write the code for windows application.
Windows Forms Events or Winform Events
Every control has its own events and events are used to write the code for windows application.
Example for Windows Application
The following example creates a windows Form with three text boxes and two button controls. When user enters two numbers in to first two text boxes and clicks on first button then sum has to be calculated for those two numbers and display the result in th
Working With Winform Textbox Enter And Leave Events
When focus enters in to a control then enter event will be raised and when a control lost focus then leave event will be raised. These events...
Working with forms keyup and keydown events
Keydown and keyup events are used when you want to write the code based on the keys having keycode but not ASCII value.
Example for Winforms keydown event with modifier keys
Control, shift and alt keys are called modifier keys.
Example for winforms keypress event
Keypress event is used when you want to write the code based on the keys having ASCII value. The second argument e for keypress event is of type keypresseventargs
Label in C# Winforms
Label is used to display the static text on windows form.