0% found this document useful (0 votes)
132 views7 pages

Hacked Premium Accounts

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 7

Chapter 3

Visual Basic .Net Advance Controls


1. Combo Box:
Combo box control, which lets the user choose one of several choices. The user can type a
value in the text fields or click the button to display a drop down list. In addition to display

Design View:

Properties
Properties Description
Items Gets the items of the list box.
SelectedItem Gets or sets the currently selected item in the list box.
Gets a collection containing the currently selected items in the
SelectedItems
listbox.
Gets or sets the value of the member property specified by the Value
SelectedValue
Member property.
SelectionStart Gets or sets the starting index of text selected in the combo box.

Events
Events Description
Click() Occurs when the control is clicked.
DoubleClick() Occurs when the control is double-clicked.
Occurs when the SelectedIndex property of a ComboBox control has
SelectedIndexChange()
changed.
Occurs when the SelectedValue property of a ComboBox control has
SelectedValueChange()
changed.
Leave() Occurs when the input focus leaves the control.

2. Picture Box:
Picture box control is used to display images in bitmap, GIF, icon, JPEG formats. We can set
the image property to the image we want to display either at design time or runtime. We can
also change image programmatically in picture box.

Design View:
Properties
Properties Description
Image Gets or sets the image that is displayed in the control.
SizeMode Determines the size of the image to be displayed in the control.
Gets or specifies an image to be displayed when an error occurs during the image-
ErrorImage
loading process or if the image load is cancelled.
WaitOnLoad Specifies whether or not an image is loaded synchronously.
Text Specifies whether or not an image is loaded synchronously.

Events
Events Description
Click() Occurs when the control is clicked.
DoubleClick() Occurs when the user double-clicks the Button control.
GotFocus() Occurs when the control receives focus.
LostFocus() Occurs when the control loses focus.
MouseHover() Occurs when the mouse pointer rests on the form.

3. Rich Text Box:

A Rich Text box control is advanced textbox that provides text editing and advanced
formatting features including loading rich text format (RTF) files.

Design View:

Properties
Properties Description
Wordwrap Indicates lines are automatically word wrapped for multiline edit controls.
ScrollBars Define the behavior of the scroll bars of the control.
Name Indicates the name used in code to identify the object.
Read Only Controls whether the text in the edit control can be changed or not.
Enabled Indicates whether the control is enabled.

Events
Events Description
Click() Occurs when the control is clicked.
DoubleClick() Occurs when the control is double-clicked.
SelectedIndexChange() Occurs when the SelectedIndex property of a ComboBox control has changed.
SelectedValueChange() Occurs when the SelectedValue property of a ComboBox control has changed.
Leave() Occurs when the input focus leaves the control.
4. List Box:
A windows form ListBox control displays a list of choices which the user can select from. You can
use the Add or Insert method to add items to a list box. The Add method adds new items at the end
of an unsorted list box. The Insert method allows you to specify where to insert the item you are
adding.

Design View:

Properties
Properties Description
Items Gets the items of the list box.
SelectedItem Gets or sets the currently selected item in the list box.
SelectedItems Gets a collection containing the currently selected items in the list box.
Gets or sets the value of the member property specified by the Value Member
SelectedValue
property.
Selection Gets or sets the method in which items are selected in the list box.
Mode

Events
Events Description
Click() Occurs when the control is clicked.
DoubleClick() Occurs when the control is double-clicked.
MouseHover() Occurs when the mouse pointer rests on the form.
Mouse Leave() Occurs when the mouse pointer leaves the form.
Resize() Occurs when the control is resized.

5. Date Time Picker:


The DateTimePicker control allows you to display and collect date and time from the user
with specified format.The most important property of the DateTimePicker is the Value
property, which holds the selected date and time.

Design View:

Properties:
Properties Description
Gets or sets the minimum date and time that can be selected in the
MinDate
control.
Gets or sets the maximum date and time that can be selected in the
MaxDate
control.
MinimumDateTime Gets the minimum date value allowed for the DateTimePicker control.
MaximumDateTime Gets the maximum date value allowed for the DateTimePicker control.
Custom Format Gets or sets the custom date/time format string.
Events
Events Description
Click() Occurs when the control is clicked.
DoubleClick() Occurs when the user double-clicks the Button control.
GotFocus() Occurs when the control receives focus.
LostFocus() Occurs when the control loses focus.
Resize() Occurs when the control is resized.
6. Progress Bar:
The ProgressBar control visually indicates the progress of a lengthy operation such as
calculating a complex result, downloading a large file from the web etc. The maximum and
minimum properties define the range of values to represent the progress of task.

Design View:

Properties:
Properties Description
Maximum Gets or sets the maximum value of the range of the control.
Minimum Gets or sets the minimum value of the range of the control.
Value Gets or sets the current position of the progress bar.
Gets or sets the manner in which progress should be indicated on the
Style
progress bar.
BackgroundImage Gets or sets the background image for the ProgressBar control.

Events
Events Description
Click() Occurs when form is Clicked
DoubleClick() Occurs when the form control is double-clicked.
MouseHover() Occurs when the mouse pointer rests on the form.
Mouse Leave() Occurs when the mouse pointer leaves the form.
Resize() Occurs when the control is resized.

7. LinkLabel:
A LinkLabel control is a label control that can display a hyperlink.LinkLabel inherited from
Label Class so it has all the functionality provided by Label Control.

Design View:

Properties
Properties Description
LinkColor Determines Color of the hyperlink in its default state
LinkArea Portion of the text in the label to render as a hyperlink
Link Visited Determines hyperlink should be rendered as visited
Determines the color of the hyperlink when the link visited property is set to
Visited Link
true.
Visible Determines whether the control is visible or hidden.
Events
Events Description
Occurs when the value of the CheckState property of the CheckBox
CheckStateChanged()
control is changed.
Resize() Occurs when the control is resized.
Click() Occurs when the control is clicked.
DoubleClick() Occurs when the user double-clicks the Button control.
Occurs when the value of the Checked property of the Checkbox
CheckedChange()
control is changed.

8. Timer:
With Timer Control, we can control programs in millisecond, seconds and minutes and even
in hours. The Timer control allows us to set Interval property in milliseconds.

Design View:

Properties
Properties Description
Interval The frequency of elapsed event in milliseconds
Name Indicates the name used in the code to identify the object
Enabled Enables generation of elapsed events.

Events
Tick() Occurs when the number of milliseconds specified in the Interval property has elapsed.

9. Scroll Bars:
The horizontal and vertical scrollbars are those which the user can use to move content into
view.

Design View:

Hscroll Vscroll
Properties
Properties Description
Maximum Gets or sets the upper limit of values of the scrollable range.
Minimum Gets or sets the lower limit of values of the scrollable range
Gets or sets a numeric value that represents the current position of the scroll box
Value
on the scroll bar control.
Small Change Gets or sets the value to be added to or subtracted from the Value property when
the scroll box is moved a small distance.
Gets or sets a value indicating whether the ScrollBar is automatically resized to
AutoSize
fit its contents.

Events
Events Description
Occurs when the value of the CheckState property of the CheckBox
CheckStateChanged()
control is changed.
Resize() Occurs when the control is resized.
Click() Occurs when the control is clicked.
DoubleClick() Occurs when the user double-clicks the Button control.
Load() Occurs before a form is displayed for the first time.

10. Masked Text Box:


A Masked Text Box control provides validation mechanism for user input on a form. For
example if you want a Text Box to accept date in mm/dd/yyyy format, you can set masking
in the Masked Text Box.
Design View:

Properties
Properties Description
Gets or sets the character used to mask characters of a password in a single-
PasswordChar
line TextBox control.
Text Gets or sets the current text in the TextBox.
Indicates whether string returned from the text property includes literals or
TextMask Format
prompt characters.
Name Indicates the name used in the code to identify the object
Mask Sets the string governing the input allowed for the control

Events
Events Description
MaskInputRejected() Occurs when mask input is invalid
Maskchanged() Occurs whne mask in changed
Click() Occurs when the control is clicked.
DoubleClick() Occurs when the user double-clicks the Button control.
Load() Occurs before a form is displayed for the first time.

---------------------------------------------------------------------------------------------------------------------

IMPORTANT NOTE:

COMMON PROPERTIES FOR ALL CONTROLS (EXCEPT TIMER CONTROL)


1. Name
2. Enabled
3. Visible
4. Font
5. Height
6. Width
7. BackColor

COMMON EVENTS FOR ALL CONTROLS (EXCEPT TIMER CONTROL)


1. Click()
2. DoubleClick()
3. MouseHover()
4. MouseUp()
5. MouseDown()

You might also like