Professional Documents
Culture Documents
RadioButton
For multiselection the panel is used. Because the form is a container control so it will
checked only one while using two or more radiobuttons.
GroupBox
Numericupdown
A NumericUpDown control allows users to provide a spin (up/down) interface to move through predefined numbers using up and down arrows.
By default Decimalplaces is 0.
Minimum =10,Maximum=20
By Default event is numericUpDown1_ValueChanged
Program
To change the value in numericupdown change in textbox
TrackBar
TrackBar control provides scrolling with a little different interface than a scrollbar.
Orientation propery :Horizontal property.
Minimum=0,Maximum=10
Small change=1 this is by the arrow keys <- ->
Large Change =5 this is by the page down and up button on keyboard.
Orientation property sets the horizontal or vertical orientation of a TrackBar control.
TickStyle property indicates how to display the tick marks on a TrackBar. It can be None,
TopLeft, BottomRight, or Both. By default BottomRight
By default event is trackBar1_Scroll.
Progress Bar
Minimum=0,Maximum=100
Value Property used to access the value which is 0 by default.
Style property is Blocks.
By Default event is progressBar1_Click
Value Property is the accessing property which is 0 by default.
Program
Change the value of Track bar change the values of progress bar
ShowWeekNumbers
Sets whether the month calendar control should display the week number to the left:
this.monthCalendar1.ShowWeekNumbers = true;
MaxSelectionCount property for Gets or sets the maximum number of days that can be
selected in a month calendar control.
To Dont show the day in calender
this.monthCalendar1.ShowToday = false;
DataTimePicker
On True
On False
MaskedTextBox
,,,,,,,,,,,,,,,,,,,,,,,
ListBox
1. A ComboBox control is a combination of a TextBox and a ListBox control. Only one list item is
displayed at one time in a ComboBox and other available items are loaded in a drop down list.
6. Program
comboBox1.Items.Remove(comboBox1.SelectedItem);
}
Listview
1. Default event is SelectedIndexChanged
2. A ListView control provides an interface to display a list of items using different views
Domainupdown
1. A DomainUpDown control allows users to provide a spin (up/down) interface to move
Example
Bitmap bt = new Bitmap("C:\\Users\\Maxhar\\Pictures\\img.jpg");
pictureBox1.Image = bt;
6. ImageLocation property is used for load image from the disk or by the web
Example
pictureBox2.ImageLocation = "C:\\Users\\Maxhar\\Pictures\\img.jpg";