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
Printable View
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
Use a RichTextBox.
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
this is kind of one of the areas that i am alright @ :)
good luck :)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
Thanks David
Hi All
Is there a possibility to make the RichTextBox -> Alignment=2(center)
Thanks
yeah, i knew, but u did not ask for that info, :)
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
sorry, i thought you were telling me, not asking me, well i'll get that code for you ok? :)
sure, here you go :)
i got this to work :)
it sets the selected text to the middle,Code:RichTextBox1.SelAlignment = vbCenter
i think the other properties are
but i am not sure :(Code:vbLeft
vbRight
'and
vbJustify '<-- ???
oh well good luck :)