|
-
May 2nd, 2000, 01:23 PM
#1
Thread Starter
Member
Hi All
I have a text in the TextBox, the text color is black and font size is 8.
How can I change the color and the font size only for one word or one letter in the text?
Thanks
-
May 2nd, 2000, 01:45 PM
#2
Lively Member
-
May 2nd, 2000, 02:21 PM
#3
Thread Starter
Member
O.K Know I have in my toolbar the RichTextBox Pro 6.0, but how am I working with it.
Can you give me exact answer or example?
How can I do it?
(Change the text Color and Text FontSize of one Word or Letter in the text)
Thanks
-
May 2nd, 2000, 02:51 PM
#4
Conquistador
this is kind of one of the areas that i am alright @ 
Code:
Private Sub Command1_Click()
rtb1.SelColor = vbRed
'Sets selected text to red
End Sub
Private Sub Command2_Click()
rtb1.SelFontSize = 15
'sets selected text to size 15
End Sub
good luck
-
May 2nd, 2000, 03:24 PM
#5
Thread Starter
Member
-
May 2nd, 2000, 03:37 PM
#6
Thread Starter
Member
Hi All
Is there a possibility to make the RichTextBox -> Alignment=2(center)
Thanks
-
May 2nd, 2000, 05:38 PM
#7
Conquistador
yeah, i knew, but u did not ask for that info,
-
May 2nd, 2000, 05:54 PM
#8
Thread Starter
Member
Thank David,try to halp me agin.
I use the same version VB 6 SP3
And I don’t have Alignment or RightToLaft option in the RichTextBox
See if you know something abut this
Thanks
-
May 4th, 2000, 02:50 PM
#9
Conquistador
sorry, i thought you were telling me, not asking me, well i'll get that code for you ok?
-
May 4th, 2000, 02:54 PM
#10
Conquistador
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
|