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

Thread: RichTextBox

  1. #1
    Join Date
    Nov 1999
    Location
    US NJ
    Posts
    113

    RichTextBox

    How can I put the curser at the end of the text after I refresh the RichTextBox everytime?
    Thanks


  2. #2
    Guest

    Re: RichTextBox

    Hi ..After having the text in RTB u use the code below I have written for Command1_click..

    Private Sub Command1_Click()
    RichTextBox1.SelStart = Len(RichTextBox1.Text)
    RichTextBox1.SetFocus
    End Sub

    Private Sub Form_Load()
    RichTextBox1.Text = "fkj hr hrejreh tre.t erthejt hrej ehyjeherjyhjyyhj yhtj7rt"
    End Sub



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