Type text in TextBox and after pressing Send to ListBox, text should be displayed in the ListBox.
(D) Output:
Refer these also :
Adding items in a listbox/Combobox (Throug...
Removing items in a listbox/Combobox (Thro...
Selecting items from a listbox/Combobox (T...
Moving items between listbox/Combobox (Th...
====================================================================
(A)Program Design :
(B) Property(Controls Used) :
- TextBox
- ListBox
- 2 Command Buttons (Send to ListBox and Exit)
(C) Attaching Code to the Object :
Private Sub Command1_Click() Dim data As String data = Text1.Text List1.AddItem (data) Text1.Text = "" End Sub |
Private Sub Command2_Click() Unload Me End Sub |
(D) Output:
Refer these also :
Adding items in a listbox/Combobox (Throug...
Removing items in a listbox/Combobox (Thro...
Selecting items from a listbox/Combobox (T...
Moving items between listbox/Combobox (Th...
(E) Errors :
If found any errors while running your VB program, or want to put your comment about any program , please click Comment section , to post.
====================================================================
No comments:
Post a Comment