Hyperlink in VB code

Posted on 2007-08-07
Last Modified: 2013-11-26
I want to add a hyperlink into my vb code, does anyone know how to do it?

here's my code
 LoginErrorDetails.Text = "Your password is incorrect. Please try again and remember that your password is case sensitive. Your account will be locked if you fail 5 login attempts. We recommend that you click on the Reset Password link after 4 unsucessful attempts."
Question by:edjones1
    LVL 6

    Accepted Solution

    1. Add a LinkLabel control(myLinkLabel) to your form, set the url as its Text property
    2. Handle the LinkLabel controls LinkClicked Event and use this code:
         myLinkLabel.LinkVisited = True

    LVL 6

    Assisted Solution

    Or in your case you could set the Text Property of the LinkLabel to "Reset Password" and simply
    open the url you want like this:


    The Process.Start method is actually used to start a process, but using a url as the parameter will open the default web browser.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now