A
Alberto
I have in the string "font" the value "Tahoma; 18pt; style=Italic" or any
other but when I execute this code, the font of the label is always the same
("Ms sans serif").
Does anybody know why this code doesn't work? Thank you.
System.ComponentModel.TypeConverter converter =
System.ComponentModel.TypeDescriptor.GetConverter(typeof(Font));
lbl.Font = (Font) converter.ConvertFromString(font);
other but when I execute this code, the font of the label is always the same
("Ms sans serif").
Does anybody know why this code doesn't work? Thank you.
System.ComponentModel.TypeConverter converter =
System.ComponentModel.TypeDescriptor.GetConverter(typeof(Font));
lbl.Font = (Font) converter.ConvertFromString(font);