954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

bold,italic,underline

code for bold,italic and underline in c# when button is pressed.....

chandnigandhi
Newbie Poster
13 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

All those are properties of a Font object. Depending on what you want to change tells you how to get the Font object to change. What is it you want to bold, italic and/or underline?

Momerath
Nearly a Senior Poster
3,384 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558
 
code for bold,italic and underline in c# when button is pressed.....
private void button1_click(object sender,eventargs e)
{
textbox1.font=new font(this.font,fontstyle.underline);
}

same for line and bolditalic....

shrutipopat
Newbie Poster
12 posts since Sep 2011
Reputation Points: 10
Solved Threads: 3
 
private void button1_click(object sender,eventargs e)
{
textbox1.font=new font(this.font,fontstyle.underline);
}

same for line and bolditalic....


thank you it is working.....

chandnigandhi
Newbie Poster
13 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You