Re: Why not use form's ParentFont for Vista?



"Paul Breneman" <SeeWebPageForEmailAddress@xxxxxxxxxxxxxxxx> wrote in
message news:45c0c042$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Matthew,

Setting ParentFont to True on the main form does not work for me. It
still
doesn't pickup the system font.

In answer to your first question, the main form does not have a parent
form,
so setting ParentFont to True doesn't make a lot of sense. In my case,
setting this property doesn't do anything either.

I made a small test program that just printed the name of the font for
the main form. I ran that under 98 or NT4 and it showed a different
font than when run under XP.

I didn't change the system font on XP but I'll try that and let you know.


Well, it doesn't work for D5. I tried the same thing and setting ParentFont
of the main form had no effect.

Woody (TMW)


.



Relevant Pages

  • Re: No Parent Properties?
    ... The system works such that if the control's Font is null, it looks to the parent container for the information. ... This is a very convenient way to determine whether the control should inherit the value for those properties from its parent control. ... At that point, as far as I can tell, the "connection" between the Font property of the control and the Font property of the form is lost. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: IFrame
    ... You need to access the parent elements like this ... font: bold 18pt verdana; ... Sub ProjDetnxt2_onclick ... Code for Iframe: ...
    (microsoft.public.scripting.vbscript)
  • Re: Font not displaying propery
    ... Choose Start, Control Panel, doubleclick Fonts and see if Formata is there. ... If memory serves, my copy of Formata was a Type1/Postscript font, meaning it ... "characters replaced by brackets parent.." ...
    (microsoft.public.powerpoint)
  • Re: Is it possible to separate the event-handling part from the control?
    ... The font would be set by SetFont, but that's a different issue than having the parent ... desired background color by calling a method of the control subclass, ... color in the subclass, where it belongs. ...
    (microsoft.public.vc.mfc)
  • Re: BUG is in Combobox.Font ?
    ... type of control is the parent in this situation? ... When setting the Font to a ... When I change font of combobox also size of combobox ... >> I am assuming that the parent is a Form. ...
    (microsoft.public.dotnet.framework.windowsforms)