Results 1 to 4 of 4

Thread: Link Label

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2003
    Posts
    17

    Link Label

    I did some search on msdn but i didn't find anything relating to link label, could someone explain how it works:

    I have a link label, how do i make it opens a website (say, www.microsoft.com) after the user clicks on it?

    Thanks for help

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    I'm not exactly sure how it is for C# but for VB it would be
    VB Code:
    1. process.start("www.microsoft.com")

    That's the shorthand, it's in system.Diagnostics.Process.Start()

    Since it's a .NET function, I'm sure you can incorporate it into C#.

    This way, it executes the URL, therefore opening it in the user's default web browser and not specifying Internet Explorer, or mozilla or netscape, ect...

    Hope that helps

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Code:
    System.Diagnostics.Process.Start(this.linkLabel1.Text);

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jul 2003
    Posts
    17
    yeah thats the one im looking for thanks a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width