Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Visual Basic problem


  • Please log in to reply
1 reply to this topic

#1 Alchemist

Alchemist

  • Members
  • 176 posts
  • OFFLINE
  •  
  • Local time:09:05 AM

Posted 03 March 2017 - 06:23 PM

While attempting to follow directions in a text to program a demo of Comboboxes, I have found a problem. The "simple" combobox simply doesn't work. Setting the DropDownStyle property of a combobox to 'simple' does not produce a fixed list, it produces a text box with no list. The other two settings work as described. Does anyone know if there is some additional setting somewhere that must be changed to allow a simple combobox? Or did MS flub the code somehow and no one has noticed, probably because no one uses this style anymore?

BC AdBot (Login to Remove)

 


#2 KingDavidlll

KingDavidlll

  • Members
  • 297 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:11:05 PM

Posted 04 March 2017 - 06:27 PM

I assume you are talking about WinForms.

Create the combobox. Select it. View the properties (not the events). You should see a property under Data called Items, and the value should be (Collection). Click that. A ... button should appear to the right. Enter what you want the combobox to have (One item per line).

I also highly recommend dropping the insults when asking questions. It will make your time a lot easier when working with other people.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users