send data from a listbox to textbox
-
sixecho wrote:
could u please tell me a way to send data from a listbox to textbox vb.net 2005
What data do you want to send from the list box? Let's assume you mean that you want the text box to display the currently selected item in the list box.
MyTextBox.Text = MyListBox.SelectedItem.ToString();
Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... "I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless." My website
-
sixecho wrote:
could u please tell me a way to send data from a listbox to textbox vb.net 2005
What data do you want to send from the list box? Let's assume you mean that you want the text box to display the currently selected item in the list box.
MyTextBox.Text = MyListBox.SelectedItem.ToString();
Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... "I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless." My website
-
this code was helpful but what i really wanted was to get all the items in the list box at once to the text box...(without selecting any item)...
Then iterate over the items collection.
For Each Object item In MyListBox.Items ...
Upcoming events: * Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ... "I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless." My website