ComboBox

  • Thread starter Thread starter DAL
  • Start date Start date
D

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.
 
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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top