Robert,
You did notice that my sample allowed you to pass a file from the command
line?
There are a number of methods to pass parameters to your program, I prefer
the Main(args) method
Public Sub Main(ByVal args() As String)
End Sub
If you have an embeded browser you could do something like:
Public Class MainForm
Inherits Form
Public Shared Sub Main(ByVal args() As String)
Dim mainForm As New MainForm
mainForm.AxWebBrowser1.Navigate2(args(0))
Application.Run(mainForm)
End Sub
End Class
Alternatively you can use the VB.NET Command() function to load the browser:
Still another method would be to use either System.Environment.CommandLine
or System.Environment.GetCommandLineArgs().
I would use Environment.CommandLine if I wanted to parse the complete
command line myself, otherwise I would use Environment.GetCommandLineArgs()
which seperates the command line into individual string tokens... However I
mostly use the Sub Main(args() As String) method.
Hope this helps
Jay
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/hosting.asp