CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2003
    Posts
    72

    Unhappy A simple question about text

    Hi guys

    A very simple question.

    I have got a form with a text box control.
    When the program is in execution and I write into the text box I want that when the cursor arrives at the end of the text box, automatically starts a new paragraph unless make operations on the characters

    Can you help me?

    Is there a property that I have to set?

    I have tried multiline and want return but it does not work

    Thanks in advance!

  2. #2
    Join Date
    May 2004
    Location
    London, England
    Posts
    563

    Re: A simple question about text

    Quote Originally Posted by elektroman
    I have got a form with a text box control.
    I have tried multiline and want return but it does not work
    Why don't you use a RichEditCtrl?

    Regards

    John
    I don't mind that you think slowly but I do mind that you are publishing faster than you think. Wolfgang Pauli, physicist, Nobel laureate (1900-1958)

  3. #3
    Join Date
    Oct 2003
    Posts
    72

    Re: A simple question about text

    I try to use it but the program does not start neither

  4. #4
    Join Date
    May 2004
    Location
    London, England
    Posts
    563

    Re: A simple question about text

    If its a dialog application, or in your case a Form, add the following to your OnInitDialog method, otherwise add to your InitInstance method :

    Code:
    AfxInitRichEdit();
    Regards

    John
    I don't mind that you think slowly but I do mind that you are publishing faster than you think. Wolfgang Pauli, physicist, Nobel laureate (1900-1958)

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