Listbox Checkedlistbox
Listbox Checkedlistbox
Interesting Education
DialogBox
Display Toolbox
Press ok to precede
Event
Button_Click
Changing Form1.BackColor
Event
ListBox1_SelectedIndexChanged
Changing Form1.BackColor
Add ListBox2
Event
Button_Click
Event
Button_Click
Event
Button_Click
Event
Button_Click
Error
ListBox1.Items(ListBox1.SelectedIndex) = TextBox1.Text ListBox1.Items
White Red Black yellow
ListBox1.SelectedIndex
0 1 2 3
Event
ListBox1_SelectedIndexChanged
Event
Button_Click
Code illustration
Dim X As New System.Text.StringBuilder For I = 0 To 3 X.Append(CheckedListBox1.Items(I)) X.Append(" ") Next MessageBox.Show(X.ToString())
System.Text StringBuilder NameSpace Class
Append(item)
ToString
Append (String)
Method
Next
MessageBox.Show(X.ToString())
System.Text StringBuilder Items Append(item) NameSpace Class Property Append (String)
ToString
Method
Code illustration
NameSpace Class Property Append (String) container for a set of identifiers (names) A set of instance information for a real content. Property Appends a copy of the specified string to this instance. convert the StringBuilder object to a String object before you can pass the string represented by the StringBuilder object to the user interface.
ToString (Method)