Thread: combo box

  1. #1
    Registered User
    Join Date
    Apr 2002

    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
    // 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, 07:20 PM
  3. How to program a "back" button with MFC
    By 99atlantic in forum Windows Programming
    Replies: 3
    Last Post: 04-26-2005, 08:34 PM
  4. New Theme
    By XSquared in forum A Brief History of
    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, 09:04 PM