CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: editBox

  1. #1
    Join Date
    Jul 2008
    Posts
    63

    editBox

    I have two editbox in dialog. I want when I write any thing in first editbox on same time it will show in second edit box like MS excel. Can anybody help me. Please tell me some code for it.

    Thanks

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

    Re: editBox

    Handle WM_CHAR in the first, use GetWindowText() to get the text and SetWindowText() to copy it to the second one.

  3. #3
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: editBox

    I would suggest handling EN_CHANGE notification in a dialog for one edit control to set text in the other.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

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