What would i use for the text that is being highlighted in a list?
(ex-- List1.????)
Printable View
What would i use for the text that is being highlighted in a list?
(ex-- List1.????)
Type in List1.
and you will see a list of available methods etc.
eg.
________VB Code:
Private Sub Form_Load() List1.AddItem "test" End Sub Private Sub Command1_Click() Text1.Text = List1.List(0) End Sub
FAT GIRL LIVE
Better example:
VB Code:
Private Sub Form_Load() With List1 .AddItem "One" .AddItem "Two" .AddItem "Three" End With End Sub Private Sub List1_Click() Text1.Text = List1.List(List1.ListIndex) ' Places the Selected item in the TextBox End Sub
ListIndex is the returned 'index' of a 'selected' List item
________
Herbalaire review