Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
change one fontface to another fontface in c# wpf
VerenaJam
Oct 15 2014 7:31 AM
813
Reply
I want to change one LTibetan fontface to Arial black fontface in c# WPF but rest Fontfaces are remains same as. I have used below code to achieve the purpose:So anybody kindly give me a help
void ChangeFontFamily(object sender, RoutedEventArgs e)
{
FontFamily ffamily = new FontFamily();
ffamily = btn2.FontFamily;
ffamily = richTextBox1.FontFamily;
string str = ffamily.ToString();
if (str == ("LTibetan"))
{
btn2.FontFamily = new FontFamily("Arial Black");
richTextBox1.FontFamily = new FontFamily("Arial Black");
btn2.Content = " Arial Black";
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
how to execute data base function daily once automatically
Not displaying Google graph