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

launching IE from within winforms app.

P: n/a
I have a strange error occuring in my winforms app that I can't seem to find any fix for.

With a button click I am launching something like the following:

string url ="http://www.microsoft.com"
System.Diagnostics.Process.Start(url);

Now, it USED to work in my current winforms app. However, now it throws an error everytime when I try to launch this.

It throws: "An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in system.dll

Additional information: The system cannot find the file specified"

Now, if i start a clean winforms app, and put the same code behind a button click, it works!!

So what's the deal? It seems somehow this project has been compromised, but nothing else is throwing errors or giving me any hints.

Your help is appreciated!

Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Cor
Hi Michael,

I have to admit this is a guess

Did you set it in the load event and where all compenents not yet
initialized?

Cor
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.