Hi,
I just started taking a VB.Net class and need some help with my first assignment. I can't figure out the syntax code for how to add text to a Listbox. My assignment is to add a Listbox to a form and then add specific text to the Listbox. I need to show my code.
I tried ListBox1.Item = "text" but this isn't working. Any help would be much appreciated.
Shahab
Loading
shahab mushtaqPosted Jun 15, 2006, 3:40 PM
SolitairePosted Jun 14, 2006, 8:51 PM
Try this:
LIstBox1.Items.Add("text")
or to add items from a textbox:
LIstBox1.Items.Add(Textbox1.Text)