You are on page 1of 1

Handout ICT 11

Click,Double Click ,Mouse Move -is a common control event.


The CancelButton property belongs to Form.
Visible - determines whether a control is displayed to the user.
Show it is a sample command code that define as VisuaL Basic objects.
txb and lbl it is a standard prefixes for the text box and label controls.
proper syntax when using a message dialog box MessageBox.Show(John,Hi)
ListView control is used to display a list of items. Along with the TreeView control, it allows
you to create a Windows Explorer like interface.
ListBox represents a Windows control to display a list of items to a user. A user can select an
item from the list. It allows the programmer to add items at design time by using the properties
window or at the runtime.
Proper coding for the following visual basic control:
Checkbox
If CheckBox1.CheckState = CheckState.Checked Then
MessageBox.Show("Male")
ElseIf CheckBox1.CheckState = CheckState.Unchecked Then
End If
Combobox
Combobox1.items.add(Male)
Combobox1.items.add(Female)
Listbox
Listbox1.items.add(Apple)
Listbox1.items.add(Manggo)
Listbox1.items.add(Banana)

You might also like