by Maximum (2 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 2nd April 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This code will allow you to double click the file in the listbox and save the name as a variable.
dim listfile as string
private sub list1_dblclick()
'makes sure there is a file in the listbox
if listfile.list(list1.listindex) <>"" then
'puts it in a variable
listfile=list1.list(list1.listindex)
endif
end sub
No comments have been posted about This code will allow you to double click the file in the listbox and save the name as a variable.. Why not be the first to post a comment about This code will allow you to double click the file in the listbox and save the name as a variable..