Click here to Skip to main content
Sign Up to vote bad
good
See more: C++
Hi,
 
I'm trying create a drop down menu (listbox? ) in visual studio. However, it's killing me I cant work out two things:
1. how to make it drop down instead of just flick between items - i click the side and it changes list item but doesnt drop down the list for easier access
2. how to make an event occur for clicking an individual item in the list instead of any...
 
Many thanks
Posted 28 Feb '13 - 3:59

Comments
du[DE] - 28 Feb '13 - 10:47
Do you use MFC / WinForms or pure WinAPI32?
lostandconfused1234 - 28 Feb '13 - 10:53
winapi32 but I would have thought something this simple can just be done with clicks in microsoft visual c++ express? :(

1 solution

Seen many questions and no answers on google so to those who also have this issue:
 
FlatStyle: Popup in toolbox. This also stops the user being able to edit it as a text box
 

this->comboBox1->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
            this->comboBox1->FlatStyle = System::Windows::Forms::FlatStyle::Popup;
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 325
1 Aarti Meswania 250
2 Sergey Alexandrovich Kryukov 249
3 Slacker007 240
4 Ron Beyer 190
0 Sergey Alexandrovich Kryukov 8,743
1 OriginalGriff 7,124
2 CPallini 3,678
3 Rohan Leuva 3,011
4 Maciej Los 2,403


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid