Visual Basic and Registry - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: Visual Basic and Registry (/showthread.php?tid=35591) Visual Basic and Registry by DJeX on 12-13-2004 at 11:28 PM
How would I make my VB program handle out side commands? Such as, I would like to when I right click a file and click my program in the right click menu it will send a command to my program and my program will handle that file as coded in the program. RE: Visual Basic and Registry by Mike on 12-14-2004 at 05:54 AM
I have never used the right-click menu, but I believe that thats how windows is doing it because there cant be any other way! code:in your Form_Load sub, and see what parametr is passed to your program. By doing this, I guess that you will understand what you have to do Beware in quotin marks! I think Windows put quoting marks at the beggining and the ending if the path or filename have spaces. So be sure to handle the filename with and without quotes many typos in the post RE: Visual Basic and Registry by CookieRevised on 12-14-2004 at 09:04 AM also make sure your program can handle multiple files!... When using the right-click menu, Windows can paste more then 1 filename. Your program should be able to cope with that. Even if your program only needs 1 filename, it should be aware of this so you don't end up trying to move the file ""filename number 1.doc" "filename number 2.txt"" for example. RE: Visual Basic and Registry by DJeX on 12-14-2004 at 10:15 PM
Yea I have the Command$ coded in my program. What I want to know is how I tell my program the file path of the file that is right clicked and my program is clicked in the menu. code: That code there only moves the file if it is dragged overtop of my program. Not right clicked. How could I change that to do both? Right click and drag overtop. RE: Visual Basic and Registry by Sk3tch on 12-15-2004 at 01:04 AM
Omg.. its been a while since i did stuff like this.. eehhmm.. RE: Visual Basic and Registry by DJeX on 12-15-2004 at 03:01 AM
you've lost me, sorry. |