Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get the value of a listbox item when clicked

Status
Not open for further replies.

martinb7

Programmer
Jan 5, 2003
235
GB
Hi, i have a listbox called List1 and when i click a value on the list, i would like that value to be put in a label called fp2copy.

e.g.

##ListBox##
item1
item2
item3

how when clicked, it puts the selected item value to a label??

any ideas??

thanx


Martin

Computing help and info:

 
Private Sub List1_Click()
Label1.Caption = List1.Text
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top