473,811 Members | 4,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

launching IE from within winforms app.

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.c om"
System.Diagnost ics.Process.Sta rt(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.Compone ntModel.Win32Ex ception' 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
1 1380
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1910
by: timandsuzi36 | last post by:
If anyone has successfully done the following and could share how they did so I would be extremely grateful and make you a high ranking officer in the impending revolution: Launch an Access Reports App from a C# WinForms app passing the SQL connection string to Access from the C# WinForms app. I can launch the Access app using System.Diagnostics.Process and it's various properties and methods but I have been unable to pass in the...
0
2551
by: timandsuzi36 | last post by:
I have a WinForms App that is launching an Access 2003 db Reports program. I am using the System.Diagnostics.Process object to do so. I thought that I could pass my db connection string to Access using the Process.StartInfo.Arguments with the /cmd switch like so. System.Diagnostics.Process i = new System.Diagnostics.Process(); i.StartInfo.WorkingDirectory = "C:\\ACAReports"; i.StartInfo.FileName = "Reports.mdb"; i.StartInfo.Arguments...
1
338
by: Michael H | last post by:
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'...
0
1785
by: microb0x | last post by:
Is there any difference in the way an Access .mdb file is launched from directly double-clicking the file through windows explorer versus using code within another Access file to launch the same file? Here is my situation: I have an application that when launched does a check whether or not
0
9604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10394
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10127
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7665
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5552
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.