Hello there,,,,,,,

In my project there is one window form and on that form I have one linkLabel control.....

Now my question is that I want to add one web page into my project ......so that when I click on the

LinkLabel it must open that web page .....so how can I do it

Open it in a browser or in the form?

So you want the Link Label to point to a page not created by you? If that's the case you can use something like this System.Diagnostics.Process.Start("http://WebsiteName");inside the onClick method

Add a "WebBrowser" control to your current form (or create a second form and add it to that form). Then use "Navigate". Change the "Dock" and "Anchor" properties of the WebBrowser control as needed to fit properly and resize properly on your form.

Call webBrowser1.Navigate("myurl.com") in the "LinkClicked" event (of your LinkLabel control).

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
     webBrowser1.Visible = true;


you can also use the multiview function

with buttons or hyperlinks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.