Populate items listbox @ runtime

Add multiple items in listbox thru textbox

Page 1 of 1

2 Replies - 11724 Views - Last Post: 22 June 2007 - 03:20 PM Rate Topic: -----

#1 parthibanbala  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-June 07

Populate items listbox @ runtime

Post icon  Posted 21 June 2007 - 11:27 PM

Hi guys,

I have to include add items into the listbox through textbox(i.e I have enter abc.com in the textbox and click "Add" button it will add the value to the list box as well as textbox value has been clear, so this provides the user add one more value in the textbox to add into the listbox).
Is This A Good Question/Topic? 0
  • +

Replies To: Populate items listbox @ runtime

#2 5ubw0r1d  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 78
  • Joined: 18-May 07

Re: Populate items listbox @ runtime

Posted 22 June 2007 - 08:44 AM

Just a slight disagreement on your rating of this problem, it's a pretty basic thing to do in VB.NET.

I feel like you may be a beginner with a class assignment perhaps, so I'm not going to give you the code straight off. Instead I'll ask, have you got any code so far? And if so, please post it and I will direct you, but will not just give you the answer.
Was This Post Helpful? 1

#3 DylanC  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 5
  • Joined: 22-June 07

Re: Populate items listbox @ runtime

Posted 22 June 2007 - 03:20 PM

That is very easy to do.

Me.Listbox1.Items.Add(Me.TextBox1.Text)

Was This Post Helpful? 1

Page 1 of 1