Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox help
Message
From
28/03/2002 16:47:11
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
 
To
28/03/2002 15:52:20
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00638656
Message ID:
00638692
Views:
28
Setting the string name to comboname.text is what you need to do. Something is very strange if it is always picking up the first item in the list. Try the following just to prove it to yourself.

Start a new standard exe
Add a combo-box, a command button, and a label-box
Under the List property of the command-box enter 3 values: a, b. and c
Add the following line of code to the command1_click event:
text1.text = combo1.text

Run the program and choose a value from the combo box. Then click the command button and you will see the same value appear in the text box. If you are always seeing the first value in the list then I sugegst you make sure that you ahve the most recent Visual Studio Service Pack applied.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform