Again thanks for the helpful links. I like Ken's recommendation of using the
Environment.GetCommandLineArgs() static function over the specified Sub Main
that you had. Although, depending on how I work out things I may use that
one instead. Also thank you for the wonderful yoda link. It had a lot of
good information there and a few questions that I've always wondered were
found there as well.
Again very much appreciated. Thank you.
Ryan
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:e0**************@tk2msftngp13.phx.gbl...
"Ryan Chavez" <rt******@hotmail.com> schrieb: What I want is when I double click the file icon it will launch the
application
and load up the information. Basically the same functionality as say
Microsoft Word does when you double click on files of .doc type.
Add this code to a module file and select 'Sub Main' as startup object in
the project properties:
\\\
Public Module Program
Public Function Main(ByVal Args() As String) As Integer
For Each Arg As String In Args
Console.WriteLine(Arg)
Next Arg
End Function
End Module
///
Also is it possible in VB.NET to have just one instance of an application
running?
Single instance:
<URL:http://www.yoda.arachsys.com/csharp/faq/#one.application.instance>
File associations:
<URL:http://www.mentalis.org/soft/class.qpx?id=5>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>