.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 11th, 2006, 06:29 AM
Cep's Avatar
Cep Cep is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 296 Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 58 m 28 sec
Reputation Power: 14
C#: Open webpage in browser from windows control

Hi,

I have seen many articles explaining how to open a webpage via an ASP.NET web control but I need to know how to open a webpage from a Windows Form Control.

Does anyone know what control class or command is used to do this?

Thanks!

Reply With Quote
  #2  
Old January 11th, 2006, 08:45 AM
MBirchmeier's Avatar
MBirchmeier MBirchmeier is offline
I <3 ASCII
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Posts: 2,396 MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 2 Days 19 h 13 m 20 sec
Reputation Power: 1231
Send a message via AIM to MBirchmeier
Most that I've seen, would just launch the system command "iexplore <website>" It won't open the website in the browser of choice, but why would anything use anything other than IE?

-MBirchmeier
__________________
My fiancee's transition from accountant to writer
0x4279 7465 204D 6521

Reply With Quote
  #3  
Old January 11th, 2006, 10:27 AM
Cep's Avatar
Cep Cep is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 296 Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 58 m 28 sec
Reputation Power: 14
And how do you do that? I cant see iexplore anywhere.

Reply With Quote
  #4  
Old January 11th, 2006, 10:43 AM
MBirchmeier's Avatar
MBirchmeier MBirchmeier is offline
I <3 ASCII
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Posts: 2,396 MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 2 Days 19 h 13 m 20 sec
Reputation Power: 1231
Send a message via AIM to MBirchmeier
You should be able to do
Code:
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.Application = "iexplore";
proc.StartInfo.Arguments = "www.google.com";
proc.Start();


-MBirchmeier
<note> untested, i'm running CompactFramework currently which doesn't allow for System.Diagnostics and i'm too lazy to load up full framework currently.

Last edited by MBirchmeier : January 11th, 2006 at 10:46 AM.

Reply With Quote
  #5  
Old January 11th, 2006, 10:53 AM
Cep's Avatar
Cep Cep is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 296 Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 58 m 28 sec
Reputation Power: 14
Apparently there is no such object "Application" under proc.StartInfo

Reply With Quote
  #6  
Old January 11th, 2006, 10:58 AM
MBirchmeier's Avatar
MBirchmeier MBirchmeier is offline
I <3 ASCII
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Posts: 2,396 MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 2 Days 19 h 13 m 20 sec
Reputation Power: 1231
Send a message via AIM to MBirchmeier
Quote:
Originally Posted by Cep
Apparently there is no such object "Application" under proc.StartInfo

Then google it it's been almost a year since i've worked in full framework, ya gotta do your own research sometimes.
Comments on this post
f'lar agrees: Preach it!

Reply With Quote
  #7  
Old January 13th, 2006, 05:40 AM
Cep's Avatar
Cep Cep is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 296 Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level)Cep User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 58 m 28 sec
Reputation Power: 14
I have thats the problem everything else always refers to using the asp.net code for a web form not a windows form.

Reply With Quote
  #8  
Old January 13th, 2006, 09:06 AM
MBirchmeier's Avatar
MBirchmeier MBirchmeier is offline
I <3 ASCII
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2003
Posts: 2,396 MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level)MBirchmeier User rank is General 4th Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 2 Weeks 2 Days 19 h 13 m 20 sec
Reputation Power: 1231
Send a message via AIM to MBirchmeier
System.Diagnostics.Process()

The first few links are all relevant,

the third (major) on even has an example of EXACTLY what you're trying to do...

-MBirchmeier

Reply With Quote
  #9  
Old October 23rd, 2007, 05:59 AM
vainternet vainternet is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Posts: 1 vainternet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 19 sec
Reputation Power: 0
Lightbulb don't u mean

proc.StartInfo.FileName ="iexplore"

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > C#: Open webpage in browser from windows control

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap