Reputation:
I have two radio buttons: Marathi
and English
.
On the checked event of either I want to change the font of the text box.
I tried the following code, but it's not working:
txtPublisherName.font.fontfamily.equals("Elephant")
Upvotes: 0
Views: 2845
Reputation: 269
By doing so you are checking whether txtPublisherName textbox current font is "Elephant" or not?
You can try this way
textBox1.Font = new Font("Calibre", 20);
Upvotes: 0