|
-
Mar 6th, 2015, 04:31 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Double Click
I have a form that uses an OpenFileDialog to open a windows browser to a specified directory. Now I can open the files contained in the directory by right clicking them and selecting open. However, for whatever reason, it will not open a file by double clicking on the file, but instead just closes the window. Whenever I use this same type of window from the native Windows system the double click always works for me. Is it possible for anyone to explain this behavior to me i.e. why does the double click not work from the Visual Basic OFD but does in the Windows environment?
By the way, all the files contained in the directory are either Word, Excel, Adobe PDF, zip, Visio, and a few others I cannot remember right now.
Below is the code used to call the OFD. the variable txtMasterFiles contains the filepath and directories to be open.
ofdFileCabinet.InitialDirectory = txtMasterFiles
ofdFileCabinet.ShowDialog()
Last edited by gwboolean; Mar 6th, 2015 at 04:34 PM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|