Click to See Complete Forum and Search --> : change text


ant
June 23rd, 2001, 08:55 PM
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: cgeorge@thevortex.com
for the address

d.paulson
June 23rd, 2001, 09:47 PM
Private Sub Command1_Click()
RichTextBox1.SelItalic = True
End Sub


David Paulson

deghost
June 24th, 2001, 02:56 PM
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!
----------