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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox question

Status
Not open for further replies.

r3b00t

Technical User
Aug 13, 2002
45
0
0
GB
Hi

Could i have it so when you double click on a listbox item, it is copied to the clipboard?

Regards

r3b00t
 
Certainly can:
Code:
'Check there is something in the listbox
If List1.ListCount > 0 Then
  'If so, copy the selected item to the clipboard
   Clipboard.SetText List1.List(List1.ListIndex)
End If 'List not empty

Retrieve the clipboard text with "GetText"
Code:
    Text1 = Clipboard.GetText

Check the online help for more information on the clipboard formats.

Hope that helps

Daren
Must think of a witty signature
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top