|
-
January 27th, 2000, 02:07 PM
#1
help on listbox!!!
i'd like to additem to a listbox simultaneously when i enter data into a textbox.what should i do?
ie, i want 1 item added into a listbox when i enter text in a textbox till i go to the next textbox.i hope the question is clear enough.please help.
-
January 27th, 2000, 02:26 PM
#2
Re: help on listbox!!!
if you want the entire text from the text box in the listbox, then you could use the lost focus event for the text box:
Sub Text1_LostFocus()
ListBox1.AddItem Text1.Text
End Sub
Then you could duplicate this for the other text boxes as well. This event will fire when the use moves away from the text box indicating that they are done entering the data.
Hope this helps,
John
John Pirkey
MCSD
www.ShallowWaterSystems.com
John Pirkey
MCSD (VB6)
http://www.stlvbug.org
-
January 27th, 2000, 02:37 PM
#3
Re: help on listbox!!!
no!!! i want to update both a listbox and textbox at the same time.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|