Harikrishna
Harikrishna

Reputation: 4305

Some bold and some simple word within the same statement

I want to show some bold and some simple word within the same sentence.If I use the textbox then every word will be simple, not some bold and some simple so I want a control's text property in that I can write some bold and some simple word within the same statement

Upvotes: 1

Views: 246

Answers (5)

Harikrishna
Harikrishna

Reputation: 4305

I had need like in one control I want to show the content with some bold and some simple font and some colorful so for that I have used webbrowser on that window form and I could satisfy my every requirement with the webbrowser control.Because we can set***html*** content to the webbrowser's DocumentText property.And in html content we can make font bold,simple as well as colorful with same sentense.

We can use richtextbox also.

Upvotes: 2

ACP
ACP

Reputation: 35264

Hai harikrishna,
you can use javascript text editors or jquery.. A list of jquery and non-jquery editors can be found in this link http://www.queness.com/post/212/10-jquery-and-non-jquery-javascript-rich-text-editors

Upvotes: 0

Eran Betzalel
Eran Betzalel

Reputation: 4203

You should use rich text box, read this.

Upvotes: 2

GrayWizardx
GrayWizardx

Reputation: 21231

Is this for Web or Desktop? With desktop you want to use the RichTextControl on the web I am not sure you can do it in a textbox, but you can use HTML and the label control to produce the same effect. Not sure about WPF I have never used that.

Upvotes: 0

Kaleb Brasee
Kaleb Brasee

Reputation: 51965

Sounds like a RichTextBox is what you're looking for.

Upvotes: 2

Related Questions