Thread: Edit and Combo Box

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    17

    Edit and Combo Box

    Hi,

    I have an SDI application. In the FormView there are several edit and combo boxes which the user fills in. I also have an "Add Transaction" button that a user clicks to update a database with the contents of the edit and combo boxes. What I'm trying to figure out is how do I set the edit and combo boxes to blank after I click the "Add Transaction"

    Thanks.

  2. #2
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Lightbulb Possibile Solution ...

    For the Edit control, you do this:

    Code:
    m_wndEdit.SetWindowText("");   // No text
    And for the ComboBox:

    Code:
    m_wndCombo.SetCurSel(-1);    // No selection (won't delete strings from the list)
    That's how I understand the question. If that's not what you wanted, let me know.
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: [email protected]

    ---------------------------------
    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    17

    Thanks

    Hi. That helped

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Capturing 'enter' key in combo box
    By Robert602 in forum Windows Programming
    Replies: 6
    Last Post: 11-17-2002, 06:46 AM
  2. combo box
    By monkeymon in forum Windows Programming
    Replies: 1
    Last Post: 05-21-2002, 03:50 AM
  3. Adding Items to Combo Boxes
    By tenthirty in forum Windows Programming
    Replies: 10
    Last Post: 12-21-2001, 02:37 AM
  4. Combo Box Extended
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 11-15-2001, 09:04 AM
  5. Default checking of radio button in a group box
    By juhigarg in forum Windows Programming
    Replies: 3
    Last Post: 11-08-2001, 12:25 AM