469,631 Members | 1,286 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

How to make selected text BOLD in RTB ?

Hi,
i'm developing an editor in VS.NET using Rich Text Box
Control. I need to make a selected text Bold. how can i do
this? also i will have an Italic Button too. If i click
Bold button the selected text has to become bold, and if i
click italic button, the bolded text has to become Italic
too with the bolded attribute. how can i do this? help me..
thanks
imaya kumar
Nov 22 '05 #1
3 5221
Why not. RTB is MUCH faster with large lists, and it's MAXLENGTH is higher
too.

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:#n*************@TK2MSFTNGP11.phx.gbl...
You are using a "Rich TextBox" control? In a .NET application? While you can use COM based ActiveX controls in a .NET application, I'd think twice
about it. Why not just use the standard TextBox control, which supports
rich text. All you would have to do is change the Bold property.
"Imaya Kumar" <im******@hotmail.com> wrote in message
news:07****************************@phx.gbl...
Hi,
i'm developing an editor in VS.NET using Rich Text Box
Control. I need to make a selected text Bold. how can i do
this? also i will have an Italic Button too. If i click
Bold button the selected text has to become bold, and if i
click italic button, the bolded text has to become Italic
too with the bolded attribute. how can i do this? help me..
thanks
imaya kumar


Nov 22 '05 #2
Why not. RTB is MUCH faster with large lists, and it's MAXLENGTH is higher
too.

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:#n*************@TK2MSFTNGP11.phx.gbl...
You are using a "Rich TextBox" control? In a .NET application? While you can use COM based ActiveX controls in a .NET application, I'd think twice
about it. Why not just use the standard TextBox control, which supports
rich text. All you would have to do is change the Bold property.
"Imaya Kumar" <im******@hotmail.com> wrote in message
news:07****************************@phx.gbl...
Hi,
i'm developing an editor in VS.NET using Rich Text Box
Control. I need to make a selected text Bold. how can i do
this? also i will have an Italic Button too. If i click
Bold button the selected text has to become bold, and if i
click italic button, the bolded text has to become Italic
too with the bolded attribute. how can i do this? help me..
thanks
imaya kumar


Nov 22 '05 #3
You didn't mention that you needed this in your original post. While you
may gain these features with the RTB, there is a performance trade-off for
using COM objects in .NET applicaitons.
"dfsdf" <sd****@sdfsdff.dfs> wrote in message
news:FLAVa.8126$Oz4.1873@rwcrnsc54...
Why not. RTB is MUCH faster with large lists, and it's MAXLENGTH is higher
too.

"Scott M." <s-***@BADSPAMsnet.net> wrote in message
news:#n*************@TK2MSFTNGP11.phx.gbl...
You are using a "Rich TextBox" control? In a .NET application? While

you
can use COM based ActiveX controls in a .NET application, I'd think twice about it. Why not just use the standard TextBox control, which supports
rich text. All you would have to do is change the Bold property.
"Imaya Kumar" <im******@hotmail.com> wrote in message
news:07****************************@phx.gbl...
Hi,
i'm developing an editor in VS.NET using Rich Text Box
Control. I need to make a selected text Bold. how can i do
this? also i will have an Italic Button too. If i click
Bold button the selected text has to become bold, and if i
click italic button, the bolded text has to become Italic
too with the bolded attribute. how can i do this? help me..
thanks
imaya kumar



Nov 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Imaya Kumar | last post: by
3 posts views Thread by gooderthanyou | last post: by
6 posts views Thread by Radith Silva | last post: by
5 posts views Thread by cs_hart | last post: by
6 posts views Thread by =?Utf-8?B?bWlrZQ==?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.