Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up font of TextBox from code behind

How do I set the font of a TextBox from a string in the code behind?

// example txtEditor.FontFamily = "Consolas"; 
like image 524
Jiew Meng Avatar asked Oct 23 '10 03:10

Jiew Meng


Video Answer


1 Answers

txtEditor.FontFamily = new FontFamily("Consolas"); // the Media namespace 
like image 136
Gishu Avatar answered Sep 22 '22 08:09

Gishu