Home All Groups Group Topic Archive Search About
Author
24 Feb 2006 9:49 PM
DAL
I have a ComboBox (On my Windows App, not ASP.NET) populated with several
internet destinations. How do I add a hyperlink so I can select the link and
be taken right to the page.

Author
25 Feb 2006 3:13 AM
SSTORY
I think that if you just shell the link it would open the browser like
it would any other document.  Just this time it has an HTML extension.
I may be wrong.  I have done this but it has been a while.

DAL wrote:
Show quoteHide quote
> I have a ComboBox (On my Windows App, not ASP.NET) populated with several
> internet destinations. How do I add a hyperlink so I can select the link and
> be taken right to the page.
>
>
>
Author
25 Feb 2006 2:36 PM
Cerebrus
Hi DAL,

If your ComboBox contains the URL's themselves, just use the Start
method of the System.Diagnostics.Process class.

Dim cmbListItem as string = MyCombo.SelectedItem.ToString()
Dim myProc As New System.Diagnostics.Process()

myproc.Start("IExplore.exe", cmbListItem)

If the ComboBox doesn't contain the complete URL, you can construct the
URL depending on which item was selected.

HTH,

Regards,

Cerebrus.