Results 1 to 6 of 6

Thread: Posting Hyperlinks - How (Lots)

  1. #1

    Thread Starter
    Hyperactive Member jokerfool's Avatar
    Join Date
    Dec 2006
    Location
    Gold Coast, Australia
    Posts
    452

    Posting Hyperlinks - How (Lots)

    If I have a group of websites what is the easiest way for me to post them so they're hyperlinks

    Code:
    http://www.aaaa.com
    http://www.bbbb.com
    http://www.cccc.com
    http://www.dddd.com
    http://www.eeee.com
    http://www.ffff.com
    http://www.gggg.com
    Adding a combobox is awesome, but the links dont hyperlink

    I could add link labels, crikey way to much work

    In vb6 I would have something like

    Code:
    Private Sub Combo1_Change()
    ShellExecute Me.hWnd, "open", Combo1.Text, "", "", SW_SHOW Or SW_NORMAL
    End Sub
    Private Sub Form_Load()
    Combo1.AddItem "http://www.aaaa.com"
    End Sub
    Private Sub Combo1_DblClick()
    ShellExecute Me.hWnd, "open", Combo1.Text, "", "", SW_SHOW Or SW_NORMAL
    End Sub

    How can I take what I've done in VB6 to work with me in VS?

    Thank you

  2. #2
    Lively Member
    Join Date
    Apr 2012
    Posts
    106

    Re: Posting Hyperlinks - How (Lots)

    The ComboBox is not written to do anything when an item is clicked (besides, of course, trigger the click event). I'm not sure where you get that idea.
    Celebrating my one year anniversary on VBForums!
    Please rate my post if it's helpful, that's all that the forums asks for!

  3. #3

    Thread Starter
    Hyperactive Member jokerfool's Avatar
    Join Date
    Dec 2006
    Location
    Gold Coast, Australia
    Posts
    452

    Re: Posting Hyperlinks - How (Lots)

    The summary in vb6 works already. Can you explain to me in more simple terms so I can understand please. I am still learning all of this.

    What can be done in one are you saying cant be done in another?

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Posting Hyperlinks - How (Lots)

    Have you even tried your VB6 logic in .Net? It should also work.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5

    Thread Starter
    Hyperactive Member jokerfool's Avatar
    Join Date
    Dec 2006
    Location
    Gold Coast, Australia
    Posts
    452

    Re: Posting Hyperlinks - How (Lots)

    I wouldnt be posting here if it worked. Yes I tried and I got errors, I tried to navigate around the errors but got more error, rather than criticize me can you assist me please?

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Posting Hyperlinks - How (Lots)

    It's not the same code in VB.NET but it's the exact same principle. Handle the SelectedIndexChanged or SelectionChangeCommitted event and call Process.Start.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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