You can now use RichTextBox.Font.Bold = true. I have an entire control
already built that can show you how to do these things simply. Plus if you
want you can use the control free in any of your apps.
http://www.codeproject.com/cs/miscctrl/RichTextBoxExtended.asp
Enjoy
Let me know if this helps any,
-Richard
richard.parsons.junk@gmail.com
hi Richard,
It does not work as any full-fledged RichTextBox will.
And sunce I have upgraded my project from VB6 to VB.net , I want to provide
all the features I used to provide in VB6.
Your RichTextBox does not work for mixed Selection..I am taking an example..
In my selection I have two words "Sanjay" and "Singh".
"Sanjay" is BOLD , "Singh" is BOLD as well as ITALIC.
Now I select all and press "I" to make them all italic.
It does make them but their boldness are not preserved making then normal.
It was not so in VB6 , When we said RichTextBox1.SetBold = true, Selection
was made bold preserving their previous fontStyle.
So obviously it does not serve my purpose.
I want to achieve the same.
Plz provide me with some help
sanjay
> You can now use RichTextBox.Font.Bold = true. I have an entire control
> already built that can show you how to do these things simply. Plus if you
[quoted text clipped - 6 lines]
> -Richard
> richard.parsons.junk@gmail.com
Richard Parsons - 06 Apr 2005 14:30 GMT
The only work around for this that I can think of right now is to take the
selected string and get the start char and lenght then select manually
select each individual character and bold it.
I know that isn't the best solution but I think it will work. Sorry I
can't be of any more help.
-Richard