Thread
:
add to windows context menu?
View Single Post
#
6
(
permalink
)
06-20-2009, 5:46 AM
jmcilhinney
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
Join Date: Aug 2004
Location: Sydney, Australia
Age: 40
Posts: 6,123
Reputation:
541
If your Reg entry says "MyApp.exe %1" then, when the user clicks MyFile.txt then Windows executes the commandline "MyApp.exe MyFile.txt" and, in your app, Environment.GetCommandLineArgs returns the array {"MyApp.exe", "MyFile.txt"}. Easy.
__________________
2007, 2008, 2009, 2010
Why is my data not saved to my database?
|
Communicating between multiple forms
MSDN:
Data Walkthroughs
|
"How Do I?" Videos
My Blog
:
Custom Events
|
Dynamic GDI+ Drawing
jmcilhinney
View Public Profile
Send a private message to jmcilhinney
Find all posts by jmcilhinney