combo box

This is a discussion on combo box within the Windows Programming forums, part of the Platform Specific Boards category; what coding should i have if i wan to make the combo box like when i select one of the ...

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    77

    combo box

    what coding should i have if i wan to make the combo box like when i select one of the item in the combo box and it will display it in the edit box

  2. #2
    Unregistered
    Guest
    Code:
    // Make combo box simple drop down list
    // rather hybrid edit & drop down
    ComboBox1->Style = csDropDownList;
    
    ...
    
    // Assign to edit box
    if (ComboBox1->ItemIndex >= 0)
    {
      Edit1->Text = ComboBox1->Items[ ComboBox1->ItemIndex ];
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Create new combo boxes based on items selected in preview combo box
    By RealityFusion in forum Windows Programming
    Replies: 2
    Last Post: 01-10-2007, 09:50 AM
  2. No data showing in combo box
    By PJYelton in forum Windows Programming
    Replies: 6
    Last Post: 04-29-2005, 08:20 PM
  3. How to program a "back" button with MFC
    By 99atlantic in forum Windows Programming
    Replies: 3
    Last Post: 04-26-2005, 09:34 PM
  4. New Theme
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM
  5. SkyLock tech demo (GUI - DX combo box)
    By jdinger in forum Game Programming
    Replies: 4
    Last Post: 07-14-2002, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21