Preface: I have viewed the combobox control video at Microsoft.at the
movies.
I want to simulate an HTML combobox as a windows application combobox with 5
to 10 selections in each box.
In the HTML form:
<option value="help.htm">More Info</option>
Thing is: I want to put the URL description "More Info" into the combobox
list, not the URL "help.htm."
URL's have too many characters for a width restricted combobox. Is there a
better way using the IDE?
If not, what programmatic control structure should I use to incorporate the
three subs (noted below) for each linklabel of the combobox? The design
calls for three of these combo boxes positioned in a horizontal row across
the page.
The vb.net code for a single linklabel is:
Private Sub llHelp_LinkClicked(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs ) Handles
llHelp.LinkClicked
Try
VisitHelp()
Catch ex As Exception
MyErrors()
End Try
End Sub
----------------
Sub VisitHelp()
llHelp.LinkVisited = True
System.Diagnostics.Process.Start("help.htm")
End Sub
----------------
Private Sub MyErrors()
MessageBox.Show("The link returned an error message.")
End Sub
========
Not very efficient for use in a combobox with 5 or more selection strings.
--
Crossposting:
I posted this msg in .controls but got 0 hits on the problem.
--
Dennis D.
http://www.dennisys.com/