text box to list box
I have a form with a text box and a form with a list box. I would like to be able to push a button on the form with the text box and have it be added to a list box. any help?
ng5
Light Poster
42 posts since Dec 2011
Reputation Points: 19
Solved Threads: 0
Skill Endorsements: 0
this will do that:
ListBox1.Items.Add(TextBox1.Text)
renzlo
Junior Poster
129 posts since Oct 2011
Reputation Points: 14
Solved Threads: 6
Skill Endorsements: 0
yes it is very simple, for example you have a formA having textbox and formB has a listbox , now put this coding at you button.
Try
formB.listbox1.items.add(textbox1.text)
Catch ex As Exception
MsgBox(Err.Description)
End Try
this will solve your prob .
Regards
M.Waqas Aslam
Master Poster
748 posts since Aug 2011
Reputation Points: 50
Solved Threads: 121
Skill Endorsements: 2
ng5
Light Poster
42 posts since Dec 2011
Reputation Points: 19
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 1 Year Ago by
M.Waqas Aslam
and
renzlo