VB .Net ComboBox Problem

0 pts.
Tags:
Development
I have been using Vb for years and I am just starting to learn .Net, which is considerably different from previous version. In a test program I wrote I am filling a combobox as follows: Dim i as Integer For i = 1 to 5 ComboBox1.Items.Add("Selection: " & i) Next When I run this program the Combobox is populated with what I told it to, but when the combo dropsdown none of the text is visible on the list. I can select a blank item and it will put in the correct thing, so i know it filled the list, but it is a bit hard for the end user to know what to select if they can't see the items on the list. I am using the following: Windows XP SP2 with all the latest updates. XP Firwall is disabled. McAffee AntiVirus 8.0i Sygate Personal Firewall Ver. 5.5 Build 2710 Windows Development Eviroment 2003 Ver. 7.1.3088 Microsoft .NET Framework 1.1 Ver.1.1.4322 SP1 Microsoft Visual Basic .Net Standard 2003
ASKED: March 7, 2005  9:42 AM
UPDATED: March 7, 2005  10:36 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

The code you provided is very simple and straight forward, it works just fine in the Form_Load event of a windows application.

Check the properties of the control and where are you populating it (i.e. in which event), if you are still having problems could you provide more details? Such as if you are working on a windows or web app, in which event are you trying to populate the control, etc.

: )

Good luck!

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following