开发者

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 开发者_如何学Cword 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


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


You should use rich text box, read this.


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.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜