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

Thread: EditBox problem

  1. #1
    Join Date
    Dec 2008
    Posts
    86

    EditBox problem

    How to display the text on new line everytime the updateData(FALSE) is executed?
    The editbox is in disable mode

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: EditBox problem

    Quote Originally Posted by scorrpeio View Post
    How to display the text on new line everytime the updateData(FALSE) is executed?
    First of all your edit control must have ES_MULTILINE style plus either ES_AUTOVSCROLL or ES_WANTRETURN (please, read the MSDN about using these styles).
    Inserting "\r\n" in the text to be displayed in the edit control will cause the line break.
    The editbox is in disable mode
    It does not make any sense.
    Victor Nijegorodov

  3. #3
    Join Date
    Jan 2003
    Location
    Timisoara, Romania
    Posts
    306

    Re: EditBox problem

    First resize your edit control, then set multiline property and then use a CString variable with \r\n before of every new line.
    Code:
    m_strMulti = _T("Line 1 \r\n New Line");

  4. #4
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: EditBox problem

    The editbox is in disable mode
    You mean you cannot manually input text there? That is called "read-only" state, not "disable mode".
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  5. #5
    Join Date
    Dec 2008
    Posts
    86

    Re: EditBox problem

    Thank you everybody!!!
    It is working.

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