Changing a Control's Font Size during runtime
From: Jeff N (N_at_discussions.microsoft.com)
Date: 01/25/05
- Next message: Bruce Wood: "Re: New Line Constant Error!"
- Previous message: Marina: "Re: Why use "finally""
- Next in thread: Vijaye Raji: "Re: Changing a Control's Font Size during runtime"
- Reply: Vijaye Raji: "Re: Changing a Control's Font Size during runtime"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 25 Jan 2005 14:27:04 -0800
It it possible to change a button's or text box's font size during runtime?
When I try to build my application with this code:
this.ActiveControl.Font.Size = "8.25";
I get this error message:
Property or indexer "System.Drawing.Font.Size' cannot be assigned to -- it
is read only
I can change a button's text property during runtime, but I'd also like to
change the font size as well.
- Next message: Bruce Wood: "Re: New Line Constant Error!"
- Previous message: Marina: "Re: Why use "finally""
- Next in thread: Vijaye Raji: "Re: Changing a Control's Font Size during runtime"
- Reply: Vijaye Raji: "Re: Changing a Control's Font Size during runtime"
- Messages sorted by: [ date ] [ thread ]