473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 5529
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Imaya Kumar | last post by:
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...
3
by: gooderthanyou | last post by:
I have a textfield and you of course you can select text... When they hit the bold button I want it to obtain the selected text and bold it, the hard part is trying to figure out if javascript...
6
by: Radith Silva | last post by:
I have the following code: Private Sub Bold(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnuFileBold.Click If mnuFileBold.Checked = True Then mnuFileBold.Checked = False...
6
by: andreas | last post by:
A selected text has fontstyles like bold and italic and underscore I want to remove one of them without changing the other fontstyles. How to do that? Thanks for any response
6
bajajv
by: bajajv | last post by:
Hi, I have a .doc file. It is in the below format 1. Question...... Ans......... 2. Question.... Ans..... and so on. Now, I want that I select the question line and make it bold. I...
2
realin
by: realin | last post by:
hi guys, I am trying to make a simple text editor for IE and firefox using javascript. I want to know how can i bold the selected text and otehr stuff like italics and all. cause in IE i was able...
5
by: cs_hart | last post by:
I have an app that sends email to clients. There is now a requiremnt to have one line in bold, as some clients seem to have overlooked some instruction. Right now the body is just a bunch of...
6
by: =?Utf-8?B?bWlrZQ==?= | last post by:
trying to convert selected text in a textbox to bold font. can someone provide me code sample? thanks.
2
by: suvarna1026 | last post by:
Can any one tell me,how to change color of selected text.Color should be picked from colorPalette.I know only one thing that,as it is client side event,it can be done in javascript.I am using asp.net...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.