Results 1 to 4 of 4

Thread: [RESOLVED] [2005] Hyperlink/Onclick open page in browser

Threaded View

  1. #1

    Thread Starter
    Lively Member Christineeve's Avatar
    Join Date
    Mar 2006
    Location
    Germany
    Posts
    78

    Resolved [RESOLVED] [2005] Hyperlink/Onclick open page in browser

    It seems when I want something explained in a complex way I find examples that only show the barest of minimum steps, and then the reverse is also true. I've spent several days on this problem too.

    I have one simple hyperlink control and when the user clicks on it, I'd like a browser to open with the page indicated in the control.

    I find all kinds of examples scrolling through this or that or appending text to this or that. I just want to launch a darn page. I've done menus and hyperlinks for years in Access and VB 6.0, I just don't know what I'm doing wrong in VB 2005. Sheesh! Oops, sorry for venting. Any advice would be greatly appreciated, I've already searched high and low, not sure what I'm missing.

    Here is my glamorous code:

    VB Code:
    1. Private Sub llHyperlink_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles llHyperlink.LinkClicked
    2. 'www.microsoft.com is also the text of the hyperlink control.
    3.         Dim url As String = "www.microsoft.com"
    4.          Dim browser As WebBrowser
    5. 'the text must stay white for all states of the click events, "not visited, visited, etc."
    6.  
    7.         browser.Navigate(url)
    8.     End Sub
    Last edited by Christineeve; May 22nd, 2006 at 01:23 PM. Reason: [RESOLVED]
    Christine Lee
    VB '05 Newbie
    Anything but ordinary
    ------------------------------
    Newbie: VB '05 Express Videos:
    http://msdn.microsoft.com/vstudio/ex...g/default.aspx
    My Space! My family!
    http://www.myspace.com/christineeve

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