Re: Controls fonts

Peter Osucha <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
Roy,

Thanks.  That does work.  Unfortunately, it has some screwy behavior
with a form that already has controls on it (try it out on a test form-
put a few controls on a form and then change the forms font property).  

As long as you do it first when the form starts, though, it does exactly
what you expected.

Phil, thanks as well.  The ease of what Roy suggested is what I was
looking for.  It doesn't offer the flexibility that your suggestion does
(it would be hard to later change the font for all the controls on the
form).

peter


-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:[email protected]] On Behalf Of
Pardee, Roy
Sent: Friday, April 13, 2007 3:29 PM
To: [email protected]
Subject: Re: [DOTNET-WINFORMS] Controls fonts

You can set a font at the form level, can't you?  I thought controls
took on the font of their form, unless it was explicitly set for the
control.

So I think you can get the behavior you want by setting the form's font.
Worth a try anyway...

HTH,

-Roy 

-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:[email protected]] On Behalf Of
Peter Osucha
Sent: Friday, April 13, 2007 12:25 PM
To: [email protected]
Subject: [DOTNET-WINFORMS] Controls fonts

Is there an easy way to set things up in the IDE so that all the
controls I use for an application will default to the same font when
added? 

 

I often find myself modifying forms for apps (based on customer desires)
where the first thing I do when adding a control to a form, I end up
changing the font.  

 

I can't imagine a mechanism by which this would be done.  Nevertheless,
it doesn't hurt to ask, right?

 

Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.