Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing font to bolditalic

Status
Not open for further replies.

fivers

Programmer
Nov 4, 2003
3
PH
say for example chaning the font in a textBox to bold would be like: textbox1.Font = new Font(this.Font, FontStyle.Bold);
but how do I change it to Bold and Italic at the same time?
 
testBox1.Font =
new Font(this.Font, FontStyle.Bold | FontStyle.Italic);

-obislavu-
 
thank you very much!! that really helped!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top