ComboBox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • DAL

    #1

    ComboBox

    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.



  • SSTORY

    #2
    Re: ComboBox

    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:[color=blue]
    > 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.
    >
    >
    >[/color]

    Comment

    • Cerebrus

      #3
      Re: ComboBox

      Hi DAL,

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

      Dim cmbListItem as string = MyCombo.Selecte dItem.ToString( )
      Dim myProc As New System.Diagnost ics.Process()

      myproc.Start("I Explore.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.

      Comment

      Working...