Hi,
I will try to explain this clearly. Using the mouse, we select files or directories in explorer, and what I want to know is, when an item gets selected (may be a file or a dir), I want to open the selected item programmatically.
It's a bit difficult for me. I want to know how to get the window handle of a selected or focused file or dir. Thanks.
-
Here are some examples of how to use an
OpenFileDialog:http://www.java2s.com/Code/CSharp/GUI-Windows-Form/CallShowDialogtodisplayanOpenFileDialog.htm
RV : may be your son will give a better answerAndrew Hare : Undoubtedly so - let me check with him and get back to you.0xA3 : If I could vote for comments this one would clearly get a vote from me, Andrew ;)Andy White : ha ha, this is awesome -
What do you want to do?
1) Have explorer use your program to open files of a specific type e.g. all files with ".Vin" extension are opened with Vinoth.Exe?
2) Trap the mouse event in windows explorer EVERY time EVERY file or directory is opened and have your program pick up those events.
If 2, why?
If neither, what do you want?
NB: Please re-edit your question, and put the answers to these questions there.
-
System.Diagnostics.Process.Start ?
RV : may be your son will give a better answer0xA3 : There is nothing wrong with this answer given the question is very vague. If you want help you should be more specific (and at least be polite).Svish : don't have a son, so I doubt that. -
Do you want to implement a generic ShellExtension for all file types/folders?
0 comments:
Post a Comment