By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 849 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

Font change for dynamic controls in vb.net

P: 1
I have read many articles and forums where a syntax such as the following can be used to change the font of a dynamic control.

Button1.Font = New Font(Button1.Font, FontStyle.Bold)

I have tried many variations of this syntax but still get a message that the font is read only. I am using .Net 4.0. Has something changed? Is there an other variation of this syntax that might work? Thanks.
Jun 23 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.