Support Forums
TextBox2.Text | Transfer Text to ListBox - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Visual Basic and the .NET Framework (https://www.supportforums.net/forumdisplay.php?fid=19)
+---- Thread: TextBox2.Text | Transfer Text to ListBox (/showthread.php?tid=24263)



TextBox2.Text | Transfer Text to ListBox - Die - 01-02-2012

Hello, I'm having a small problem developing my program. I would like to be able to transfer the text from TextBox2, and make a new collection item in ListBox1.

Example:
I type "Hello" in TextBox2.
I click a button.
"Hello" is a new item in the ListBox.

Hope I could make it easy to understand, I'm just waking up so my grammar probably isn't 100%.

Thanks to anybody that helps!



RE: TextBox2.Text | Transfer Text to ListBox - AceInfinity - 01-02-2012

Listbox1.Items.Add(Textbox2.Text)


RE: TextBox2.Text | Transfer Text to ListBox - Die - 01-02-2012

(01-02-2012, 02:08 PM)AceInfinity Wrote: Listbox1.Items.Add(Textbox2.Text)


Thanks man, I was stuck on this for a while, even though it was such a small thing :/


RE: TextBox2.Text | Transfer Text to ListBox - AceInfinity - 01-02-2012

No problem, any further help and just post your issues on the forum here. I'll usually respond to pretty much anything I see in here.