VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This code will allow you to double click the file in the listbox and save the name as a variable.

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.

Rate 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

Download this snippet    Add to My Saved Code

This code will allow you to double click the file in the listbox and save the name as a variable. Comments

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..

Post your comment

Subject:
Message:
0/1000 characters