This document discusses various controls in Visual Basic including checkboxes, comboboxes, listboxes, labels, textboxes, and listviews. It provides code examples for displaying message dialog boxes, adding items to comboboxes and listboxes, and checking the state of checkboxes. Controls like listviews and listboxes allow displaying lists to users while labels and textboxes are used to display text. The document also covers basic mouse and visibility properties.
This document discusses various controls in Visual Basic including checkboxes, comboboxes, listboxes, labels, textboxes, and listviews. It provides code examples for displaying message dialog boxes, adding items to comboboxes and listboxes, and checking the state of checkboxes. Controls like listviews and listboxes allow displaying lists to users while labels and textboxes are used to display text. The document also covers basic mouse and visibility properties.
This document discusses various controls in Visual Basic including checkboxes, comboboxes, listboxes, labels, textboxes, and listviews. It provides code examples for displaying message dialog boxes, adding items to comboboxes and listboxes, and checking the state of checkboxes. Controls like listviews and listboxes allow displaying lists to users while labels and textboxes are used to display text. The document also covers basic mouse and visibility properties.
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)