listbox items as hyperlinks

DarthSwian

New member
Joined
Mar 20, 2008
Messages
2
Programming Experience
3-5
This may be very easy, but I'm from a web design background and just started working on windows forms.

I have a form with a listbox, I'm looping through records from a database an adding items to the listbox and I'd like to have each added item to be clickable or double clickable as a hyperlink.

Can anyone point me in the right direction?
 
Why don't you just handle the list box's click or double click event and do whatever it is you want to do, there?
 
I can certainly handle the double click event, but HOW would I open a browser with the correct URL?

Any sample would be appreciated.
 
Just use a lookup. Have a seperate arraylist of the url addresses that correspond to the listbox index. On the double click look up the url from the arraylist and do a process.start on that.

process.start(url) should do it.
 
Back
Top