|
-
June 23rd, 2001, 08:55 PM
#1
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
-
June 23rd, 2001, 09:47 PM
#2
Re: change text
Private Sub Command1_Click()
RichTextBox1.SelItalic = True
End Sub
David Paulson
-
June 24th, 2001, 02:56 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|