|
-
Apr 14th, 2013, 07:06 AM
#1
Thread Starter
Hyperactive Member
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
-
Apr 14th, 2013, 07:14 AM
#2
Lively Member
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!
-
Apr 14th, 2013, 07:19 AM
#3
Thread Starter
Hyperactive Member
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?
-
Apr 14th, 2013, 08:00 AM
#4
Re: Posting Hyperlinks - How (Lots)
Have you even tried your VB6 logic in .Net? It should also work.
-
Apr 14th, 2013, 08:58 AM
#5
Thread Starter
Hyperactive Member
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?
-
Apr 14th, 2013, 09:10 AM
#6
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|