PC Review


Reply
Thread Tools Rate Thread

calling a website after a button click event

 
 
John Timney \(MVP\)
Guest
Posts: n/a
 
      25th Jul 2006
lookup process.start in the documentation

Process p = Process.Start("IExplore.exe", URL);
--
Regards

John Timney (MVP)


"gordon" <(E-Mail Removed)> wrote in message
news:44c5dca2$0$1205$(E-Mail Removed)...
> Hi
>
> I have a simple form that I would like to have a website called up when a
> user clicks on a button.
>
> can anyone please tell me how to do this?
>
> thanks
>
> Doug
>



 
Reply With Quote
 
 
 
 
Marc Gravell
Guest
Posts: n/a
 
      25th Jul 2006
Of course, that assumes the user wants to use IE; to use their default
browser (which could be anything), just "Process.Start(url);" - the OS
should pick up the http and act accordingly...

Marc


 
Reply With Quote
 
PandaGoat@gmail.com
Guest
Posts: n/a
 
      25th Jul 2006
I like to call it statically by just doing --
System.Diagnostics.Start("http://www.website.com");

 
Reply With Quote
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      25th Jul 2006
PandaGoat,
That's "System.Diagnostics.Process.Start", and its the same method call that
was already shown above.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




"(E-Mail Removed)" wrote:

> I like to call it statically by just doing --
> System.Diagnostics.Start("http://www.website.com");
>
>

 
Reply With Quote
 
John Timney \(MVP\)
Guest
Posts: n/a
 
      25th Jul 2006
Indeed he could.



--
--
Regards

John Timney (MVP)

"Marc Gravell" <(E-Mail Removed)> wrote in message
news:%23%(E-Mail Removed)...
> Of course, that assumes the user wants to use IE; to use their default
> browser (which could be anything), just "Process.Start(url);" - the OS
> should pick up the http and act accordingly...
>
> Marc
>



 
Reply With Quote
 
gordon
Guest
Posts: n/a
 
      26th Jul 2006
Hi

I have a simple form that I would like to have a website called up when a
user clicks on a button.

can anyone please tell me how to do this?

thanks

Doug


 
Reply With Quote
 
gordon
Guest
Posts: n/a
 
      26th Jul 2006
Thanks John.

I learn something new about C# every day.

Doug
"John Timney (MVP)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> lookup process.start in the documentation
>
> Process p = Process.Start("IExplore.exe", URL);
> --
> Regards
>
> John Timney (MVP)
>
>
> "gordon" <(E-Mail Removed)> wrote in message
> news:44c5dca2$0$1205$(E-Mail Removed)...
>> Hi
>>
>> I have a simple form that I would like to have a website called up when a
>> user clicks on a button.
>>
>> can anyone please tell me how to do this?
>>
>> thanks
>>
>> Doug
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Button click event from Form initialise event? noname Microsoft Excel Programming 2 10th Sep 2010 11:09 PM
Re: Calling Button Click method / raise event Stoitcho Goutsev \(100\) Microsoft Dot NET Framework Forms 0 17th Jan 2007 08:12 PM
code for calling a button event (click) ? (asp.net 2) moi Microsoft ASP .NET 2 8th Mar 2006 02:32 PM
Server Side button calling page_load before calling it's own click event. Ryan Ternier Microsoft ASP .NET 4 29th Jul 2004 02:06 PM
Calling a javascript function on asp:button's click event Praveen Ladwani Microsoft VB .NET 1 13th Jan 2004 08:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:43 PM.