Simple combo box

This is a discussion on Simple combo box within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I'm using MVS .net 2003. I'm making a Windows Form App in C++ using the Designer. One question that ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    53

    Simple combo box

    Hi,
    I'm using MVS .net 2003. I'm making a Windows Form App in C++ using the Designer.
    One question that I can't seem to find the answer to.
    I have 8 combo boxes, for 2 of the combo boxes, code has been generated with a new event when the index has been changed, and a empty function has been created also. I've looked at the propertes of all the combo boxes and they are all the same, but only two of them have this event handler.

    1) How do I add a event Handler for the other 6 combo boxes. Whenever I try to add the code manually, it gets erased when I change the form.

    Thanks

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    First make sure each control has a unique ID. Use the resource editor to add new message handlers. If that does not work, do it manually. Use the working examples as references.

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Combo Box Problem
    By osal in forum Windows Programming
    Replies: 1
    Last Post: 06-06-2004, 05:45 PM
  2. Best way to load lines of text from a file to a combo box
    By ganonl in forum Windows Programming
    Replies: 6
    Last Post: 04-15-2004, 12:07 PM
  3. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM
  4. Combo Box / DAO / PropertyPage troubles
    By Robert602 in forum Windows Programming
    Replies: 7
    Last Post: 03-05-2002, 12:29 PM
  5. Prob. with Combo Box in VC++
    By noname01 in forum C++ Programming
    Replies: 1
    Last Post: 01-21-2002, 04:21 PM

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