open an IE page form a linkedlable

  • Thread starter Thread starter ALI-R
  • Start date Start date
A

ALI-R

I want when user clicks on LinkedLable ,an IE page to an specific address
opens ,how can I do that?

thanks
 
you can use IE com component...
first click Customise Toolbox then select Com component and add Microsoft
Web Browser,,
and use Navigate method of that to open ur desired page
 
using navigate method of the component ,there are some othere parameters as
"ref object",what are these?

thanks
 
ALI-R,

Basically, you will want to handle the LinkClicked event for the link
label. In the handler, you would call the static Start method on the
Process class, passing the URL you want the default web browser to navigate
to.

Hope this helps.
 
this is my handler for LinkedLable:
this.linkLabel1.LinkClicked += new
System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkCl
icked);



how shall I change it? What is Proccess Class??

Thansk for your help.

Nicholas Paldino said:
ALI-R,

Basically, you will want to handle the LinkClicked event for the link
label. In the handler, you would call the static Start method on the
Process class, passing the URL you want the default web browser to navigate
to.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

ALI-R said:
I want when user clicks on LinkedLable ,an IE page to an specific address
opens ,how can I do that?

thanks
 
ALI-R,

It is in the System.Diagnostics namespace. As for changing it, you
don't want to change the assignment to the event handler, but rather, the
linkLabel1_LinkClicked method. This is the code that you write to handle
the event.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

ALI-R said:
this is my handler for LinkedLable:
this.linkLabel1.LinkClicked += new
System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkCl
icked);



how shall I change it? What is Proccess Class??

Thansk for your help.

in
message news:%[email protected]...
ALI-R,

Basically, you will want to handle the LinkClicked event for the link
label. In the handler, you would call the static Start method on the
Process class, passing the URL you want the default web browser to navigate
to.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

ALI-R said:
I want when user clicks on LinkedLable ,an IE page to an specific
address
opens ,how can I do that?

thanks
 
To make it perfectly clear, in your link label's click event handler just
add the following line:

System.Diagnostics.Process.Start("www.microsoft.com"); // or whatever
url you want

ShaneB
 
Back
Top