0% found this document useful (0 votes)
39 views2 pages

Windows Form Controls

The document describes properties and methods for common controls in Windows Forms applications, including forms, buttons, text boxes, labels, check boxes, radio buttons, picture boxes, timers, and group boxes. For each control, it lists properties that configure aspects like text, colors, sizes, and events, as well as common methods. Controls allow building graphical user interfaces by arranging visual elements and handling user interactions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views2 pages

Windows Form Controls

The document describes properties and methods for common controls in Windows Forms applications, including forms, buttons, text boxes, labels, check boxes, radio buttons, picture boxes, timers, and group boxes. For each control, it lists properties that configure aspects like text, colors, sizes, and events, as well as common methods. Controls allow building graphical user interfaces by arranging visual elements and handling user interactions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Forms

Property/Method Description
Form.BackColor Gets or sets the background color of the form.
Form.Text Gets or sets the text displayed in the form's title bar.
Form.Width Gets or sets the width of the form.
Form.Height Gets or sets the height of the form.
Form.ShowDialog Displays the form as a modal dialog box.

2. Button

Property/Method Description
Button.Text Gets or sets the text displayed on the button.
Button.Enabled Gets or sets whether the button is enabled.
Button.BackColor Gets or sets the background color of the button.
Button.Click Event that occurs when the button is clicked.
Button.Focus Sets input focus to the button.

3. TextBox

Property/Method Description
TextBox.Text Gets or sets the text in the textbox.
TextBox.ReadOnly Gets or sets whether the textbox is read-only.
TextBox.MaxLength Gets or sets the maximum number of characters in the textbox.
TextBox.Clear Clears the text in the textbox.
TextBox.Focus Sets input focus to the textbox.

4. Label

Property/Method Description
Label.Text Gets or sets the text displayed in the label.
Label.ForeColor Gets or sets the text color of the label.
Label.Font Gets or sets the font used for the label's text.
Label.TextAlign Gets or sets the alignment of the label's text.
Label.AutoSize Gets or sets whether the label automatically sizes itself.

5. CheckBox

Property/Method Description
CheckBox.Text Gets or sets the text displayed next to the checkbox.
CheckBox.Checked Gets or sets whether the checkbox is checked.
CheckBox.Enabled Gets or sets whether the checkbox is enabled.
CheckBox.CheckedChanged Event that occurs when the checkbox is checked or unchecked.
CheckBox.Focus Sets input focus to the checkbox.
6. Radio Button

Property/Method Description
RadioButton.Text Gets or sets the text displayed next to the radio button.
RadioButton.Checked Gets or sets whether the radio button is checked.
RadioButton.Enabled Gets or sets whether the radio button is enabled.
RadioButton.ForeColor Gets or sets the text color of the radio button.
RadioButton.CheckedChanged Event that occurs when the radio button is checked or unchecked.

7. Picture Box

Property/Method Description
PictureBox.Image Gets or sets the image displayed in the picture box.
PictureBox.SizeMode Gets or sets how the image is displayed within the picture box.
PictureBox.BackColor Gets or sets the background color of the picture box.
PictureBox.Size Gets or sets the size of the picture box.
PictureBox.BorderStyle Gets or sets the border style of the picture box.

8. Timer

Property/Method Description
Timer.Enabled Gets or sets whether the timer is running.
Timer.Interval Gets or sets the interval between timer ticks (ms).
Timer.Tick Event that occurs when the timer interval elapses.
Timer.Start() Starts the timer.
Timer.Stop() Stops the timer.

9. Group Box

Property/Method Description
GroupBox.Text Gets or sets the text displayed in the group box's header.
GroupBox.Enabled Gets or sets whether the group box is enabled.
GroupBox.BackColor Gets or sets the background color of the group box.
GroupBox.Size Gets or sets the size of the group box.
GroupBox.Padding Gets or sets the padding inside the group box.

You might also like