Results 1 to 4 of 4

Thread: Word Wrap TextBox?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Red face

    I want to allow the user to key in text into a textbox, if the text is too long, then it will wrap to another line and then a scroll bar displayed (it seems Delphi is like that). But I am not going to use Ctrl-Enter, since that will embed a CHR(10) in the data which I cannot save to DB.

    So, is this possible...how?


    Thanks


  2. #2
    Hyperactive Member WP's Avatar
    Join Date
    Aug 2000
    Location
    Belgium
    Posts
    278

    Cool

    If i understood your question, you have to turn off the MULTILINE in the properties of that textbox

    WP

    Visual Basic 6.0 EE SP5 / .Net
    Windows XP

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318

    Smile

    If the multiline is false, and I key in more characters than the width, then the text will just shift left. Instead, I want it to wrap to next line.

    If I just multiline is True, sure I can switch to next line (by pressing Ctrl-Enter). But that will have the CHR(10) inside.

    What I want to do is look like multiline is True, without manually press Ctrl-Enter and NO CHR(10) inside.


  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Set MultiLine to True and the Scrollbar property to 2 - Vertical.
    By only showing the vertical scrollbar the TextBox will automatically wrap the text.

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