Hi,

I've tried to search the answer but can't find it so far:

Can someone shed some light on how the font was used when button's
flat style is FlatStyle.System??
I've tried all sorts of ways, but the button's font always got changed
when its container's font was set. Is there a way to set it back to
Windows' default?

Thanks!!
Alan

Re: Help with FlatStyle.System and font by hirf-spam-me-here

hirf-spam-me-here
Wed Jun 02 03:51:16 CDT 2004

* alan.wu@acm.org (Alan W.) scripsit:
> Can someone shed some light on how the font was used when button's
> flat style is FlatStyle.System??
> I've tried all sorts of ways, but the button's font always got changed
> when its container's font was set. Is there a way to set it back to
> Windows' default?

\\\
Me.Button1.Font = DirectCast(Me.Button1.Font.Clone(), Font)
Me.GroupBox1.Font = New Font("Arial", 33, FontStyle.Bold)
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Re: Help with FlatStyle.System and font by Alan

Alan
Wed Jun 02 17:49:02 CDT 2004

Hi Herfried,

I've finally located the silly bug that caused the problems. (It has nothing
to do with FlatStyle as you've known.)

Many Thanks!!!
Alan

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:2i5ip2Fj936oU1@uni-berlin.de...
> * alan.wu@acm.org (Alan W.) scripsit:
> > Can someone shed some light on how the font was used when button's
> > flat style is FlatStyle.System??
> > I've tried all sorts of ways, but the button's font always got changed
> > when its container's font was set. Is there a way to set it back to
> > Windows' default?
>
> \\\
> Me.Button1.Font = DirectCast(Me.Button1.Font.Clone(), Font)
> Me.GroupBox1.Font = New Font("Arial", 33, FontStyle.Bold)
> ///
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>