Pages

Total Pageviews

Add This

Friday, April 29, 2011

Select Newly Added Item in Listbox

Create a form like on the picture bellow:
In to the selected button write the code bellow:
        
Dim selecteditem As Integer = ListBox1.Items.Add(TextBox1.Text)
ListBox1.SetSelected(selecteditem, True)

No comments:

Post a Comment