Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How can I open a hyperlink in a link click from my form in C#.net [modified]

How can I open a hyperlink in a link click from my form in C#.net [modified]

Scheduled Pinned Locked Moved C#
csharpquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anu Palavila
    wrote on last edited by
    #1

    Hi In my C#.net Inventory application in my contact us form I want to place our company website name and when clicked, it must be opened in a web page

    Thanks & Regards

    modified on Monday, June 30, 2008 7:29 AM

    V D 2 Replies Last reply
    0
    • A Anu Palavila

      Hi In my C#.net Inventory application in my contact us form I want to place our company website name and when clicked, it must be opened in a web page

      Thanks & Regards

      modified on Monday, June 30, 2008 7:29 AM

      V Offline
      V Offline
      Vimalsoft Pty Ltd
      wrote on last edited by
      #2

      Hi Take time and Explain Exacly what you want. Thanks

      Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za

      1 Reply Last reply
      0
      • A Anu Palavila

        Hi In my C#.net Inventory application in my contact us form I want to place our company website name and when clicked, it must be opened in a web page

        Thanks & Regards

        modified on Monday, June 30, 2008 7:29 AM

        D Offline
        D Offline
        DaveyM69
        wrote on last edited by
        #3

        Add a LinkLabel in the designer or through code. Set Text and Tag properties in the designer or in code:

        linkLabel1.Text = "Code Project";
        linkLabel1.Tag = "www.codeproject.com";

        Add a Click event handler to your LinkLabel and in it put:

        System.Diagnostics.Process.Start((string)linkLabel1.Tag);

        Dave

        T 1 Reply Last reply
        0
        • D DaveyM69

          Add a LinkLabel in the designer or through code. Set Text and Tag properties in the designer or in code:

          linkLabel1.Text = "Code Project";
          linkLabel1.Tag = "www.codeproject.com";

          Add a Click event handler to your LinkLabel and in it put:

          System.Diagnostics.Process.Start((string)linkLabel1.Tag);

          Dave

          T Offline
          T Offline
          Thomas Stockwell
          wrote on last edited by
          #4

          I didn't think of that type of concept for the Tag property. kudos

          Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my homepage Oracle Studios Discounted or Free Software for Students: DreamSpark - downloads.channel8.msdn.com MSDN Academic Alliance - www.msdnaa.com

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups