DeniseGoodheart
asked on
Globally Change Font Settings for Text and Label Controls
Hi,
I’m using VS.NET 2005. The VS.NET font’s settings default is Microsoft Sans Serif, 8.25pt. Is there a way to globally change the font size and type for all labels and text controls based on a setting or by code?
Thanks,
Denise
I’m using VS.NET 2005. The VS.NET font’s settings default is Microsoft Sans Serif, 8.25pt. Is there a way to globally change the font size and type for all labels and text controls based on a setting or by code?
Thanks,
Denise
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Daniel,
I tried the following code and it actually globally changed all my form controls, and not just the one mentioned below:
Me.Font = New Font(Me.txtStockedAS.Text, 11)
It must be some kind of bug.
Many Thanks,
Denise
I tried the following code and it actually globally changed all my form controls, and not just the one mentioned below:
Me.Font = New Font(Me.txtStockedAS.Text,
It must be some kind of bug.
Many Thanks,
Denise
ASKER
Thanks for your response. I understand this is the way to do it individually, but I was curious if it was possible to globally change the font property using some kind of form control collection. I need to experiment with font sizes for my customer, and I did not want to have to change all the font text controls and labels individually. It looks like I might have to go into the properties for each form and change it individually, or do something like the following in code:
Me.txtParameter1.Font.Size
The code above does not work. Any suggestion on how to fix it to work?
Thanks,
Denise