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

    Multiline Text box control

    Hello...

    How do I always see the bottom line of a multiline textbox control? I have this textbox (multiline w/ v-scroll bars) and it is locked/disabled for user input (text gets filled programatically) the problem is that as the text box filles up, and more lines are added, they are added at the bottom, and is not viewable, unless the user actually scrolls down. I tried generating a ctrl+end keypress event (RaiseEvent) with focus on the text box, and this did not work (I guess you cannot generate any keypress event, as people could potentially generate a ctrl+alt+del event too..) Anyway, any ideas?


  2. #2
    Join Date
    Aug 2000
    Posts
    49

    Re: Multiline Text box control

    Try This one

    Private Sub Command1_Click()
    With Text1
    .SelStart = Len(.Text)
    End With
    End Sub


  3. #3
    Join Date
    Jun 2001
    Location
    Israel
    Posts
    228

    Re: Multiline Text box control

    Just for a laugh, i've created a self-programming program using generated keypresses! (in IDE only).
    you generate the following:
    Alt-F4 to exit to IDE
    The code you want to add (or even to DELETE! by backspace)
    F5 to run
    :0)!

    ----------
    The @host is everywhere!
    ----------

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