I think I now what your asking.
Add the combox to a form. Populate the "box" via the items property...click
on collection to the right, then click on the "..." and generate your list.
To extract the users choice from the combobox, the "event" is up to you.
Assume there is a command button on the form that is to extract the user's
choice upon being clicked. In the command1_click event, the combobox then
behaves like a text box....
i.e.
variablename=combobox1.text
for example.
the default event (the one that pops up when you dbl-click this control in
design view) for a combobox is the
Sub ComboBox1_SelectedIndexChanged(...)
event, which means that when a selection is made, or changed, this
subroutine runs. Within THAT sub you could also do the proverbial
variablename=combobox1.text
to capture the chosen combo boxvalue to do whatever you need to with
it......
Hope this helps....
Frank Bachman
(Grumpy Aero Guy)
"Robert Repsher via .NET 247" <an*******@dotnet247.com> wrote in message
news:OM**************@TK2MSFTNGP15.phx.gbl...
(Type your message here)
My professor left the class to learn Combo Box on our own. Building it was
not a problem. But what event am I supposed to associate with this object?
How do I code so that when the user picks from the list his/her choice is
recognized as a string? The procedure-level variables in the program vary
with each name in the list, so right now I have an interface that "has no
brains."
--------------------------------
From: Robert Repsher
-----------------------
Posted by a user from .NET 247 (
http://www.dotnet247.com/)
<Id>Fy7QX26U102OB+CsLZBhkA==</Id>