Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
Trouble changing UltraLabel font at runtime
posted

I have an UltraFontNameEditor on a form and I'm trying to change the font on an UltraLabel to the selected font in the editor when the value is changed.

I've tried this:

 private void fpFontPicker_ValueChanged(object sender, EventArgs e)
{  
 ultraLabel1.Appearance.FontData.Name = fpFontPicker.Value.ToString();
}

 Nothing happens. Changing FontData.SizeInPoints does actually cause the label's text to change size. Is there a setting somewhere that I've missed?

Parents Reply Children
No Data