CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Posts
    568

    get text in combo box control

    How can i get the text in a combo box which the text is enter by user?
    i try GetEditSel() it return nothing where GetLbText() return application error might due to nothing is select.

  2. #2
    Join Date
    Jul 2005
    Location
    E: 120°.6, N: 31°.3′
    Posts
    795

    Re: get text in combo box control

    A Sample here:
    Code:
    CComboBox  m_cbExample; 
    int nIndex = m_cbExample.GetCurSel();
    CString strCBText;
    m_cbExample.GetLBText(nIndex, strCBText);
    Little by little one goes far
    Keep moving.......!
    Nothing is impossible !

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: get text in combo box control

    GetWindowText()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured