On Tue, 27 Dec 2005 13:03:45 +0100, "Herfried K. Wagner [MVP]"
<hi***************@gmx.at> wrote:
"Kalim Julia" <ka*********@gmail.com> schrieb: Anybody knows how to set NumericUpDown's font in runtime.
I've tried ....
mlNUMERICUPDOWN.Font.Size = 10
But the system said that Property 'size' is 'ReadOnly'
\\\
Me.NumericUpDown1.Font = _
New Font(Me.NumericUpDown1.Font.FontFamily, 12.0F)
///
Out of curiosity: Would it not be more correct to write
nud.Font = New Font(nud.Font.Name, 14)
instead of FontFamily? If I go to the docs for FontFamily, I read
"A FontFamily represents a group of fonts that have a similar font
face, but may have different sizes and styles (for example, Arial,
Times New Roman, and Verdana)."
Is it possible that the current font (name) might be a member of a
font family, but not the default font (name), meaning that specifying
FontFamily could result in a different, albeit related font?
I suppose specifying the font family will work most of the time
when sticking to the standard fonts. Just wondering if it wouldn't
be safer to specify the font name instead - at least in this case
where the font name is already known to exist.
?
Regards,
/JB