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

Thread: change text

  1. #1
    Join Date
    May 2001
    Posts
    155

    change text

    When the user highlights text in a richtextbox and then clicks a button it should make the selected text italic. How would i do that???

    --Ant
    --------------------------------------------------
    check out my newest freeware
    E-mail me at: [email protected]
    for the address

  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: change text

    Private Sub Command1_Click()
    RichTextBox1.SelItalic = True
    End Sub


    David Paulson

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

    Re: change text


    private Sub RichTextBox1_KeyDown(KeyCode as Integer, Shift as Integer)
    If KeyCode = vbKeyI And Shift = vbAltMask then
    RichTextBox1.SelItalic = true
    End If
    End Sub





    ----------
    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