Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Sunday, August 7, 2011

VB-85 : Moving from TextBox to ListBox

Type text in TextBox and after pressing Send to ListBox, text should be displayed in the ListBox.


(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: