1.11M Members

text box to list box

 
0
 

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?

 
0
 

this will do that:

ListBox1.Items.Add(TextBox1.Text)
 
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

 
0
 

thanks for the help :)

Question Answered as of 2 Years Ago by M.Waqas Aslam and renzlo
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: