By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

start process

P: n/a
Hi,
I use the standard example to start a program:
Private Sub StartWithArguments()
' Declare and instantiate a new process component.
Dim myproc As System.Diagnostics.Process
myproc = New System.Diagnostics.Process

' Do not receive an event when the process exits.
myproc.EnableRaisingEvents = False
' Start Internet Explorer, passing in a Web page.
myproc.Start("IExplore.exe", "http://www.microsoft.com")
End Sub

But my firewall protests and I don't get a connection. If I start via
'start/run' there is no problem, also starting IE and typing the address is
no problem. Does vb.net do anything strange?
The firewall might still be the problem, because IE is started by another
program (the VB appl). The firewall states that and I agree in starting IE.
Should be ok. So I first want to see if VB is the problem. Is there another
way to start a browser with a www address?

Thanks
Frank
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Nice try, no cigar.
Thanks anyway

"Anand[MVP]" <An******@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
You can try by setting the UseShellExecute in the Process StartInfo and then asking it to execute the URL. This will was if you typed
"http://www.microsoft.com" in the run dialog
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com

"Frank" wrote:
Hi,
I use the standard example to start a program:
Private Sub StartWithArguments()
' Declare and instantiate a new process component.
Dim myproc As System.Diagnostics.Process
myproc = New System.Diagnostics.Process

' Do not receive an event when the process exits.
myproc.EnableRaisingEvents = False
' Start Internet Explorer, passing in a Web page.
myproc.Start("IExplore.exe", "http://www.microsoft.com")
End Sub

But my firewall protests and I don't get a connection. If I start via
'start/run' there is no problem, also starting IE and typing the address is no problem. Does vb.net do anything strange?
The firewall might still be the problem, because IE is started by another program (the VB appl). The firewall states that and I agree in starting IE. Should be ok. So I first want to see if VB is the problem. Is there another way to start a browser with a www address?

Thanks
Frank

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.