Results 1 to 4 of 4

Thread: Rich TextBox

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2004
    Posts
    60

    Rich TextBox

    i want to do something like this

    Private Sub Command1_Click()

    RichTextBox1.TextRTF = RichTextBox1.TextRTF & vbcrlf & RichTextBox2.TextRTF

    End Sub

    but it doesnt work, any idea?

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    What doesn't work about it? What does it do?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2004
    Posts
    60
    it just dont do nothing, i thing its a problem with the syntaxis

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Try this...
    VB Code:
    1. Private Sub Command1_Click()
    2.    
    3.     With RichTextBox1
    4.         .SelStart = Len(.Text)
    5.         .SelText = vbCrLf
    6.         .SelStart = Len(.Text)
    7.         .SelRTF = RichTextBox2.TextRTF
    8.     End With
    9.  
    10. End Sub
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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