Home All Groups Group Topic Archive Search About

Form Event - Minimizing/Restoring

Author
21 Dec 2004 1:20 AM
Phil Jones
I'm no doubt missing the blindingly obvious here - but where's the event on
a Form that indicates that is has either been minimized or restored? (is
there one?)

Thanks everyone.
===
Phil
Author
21 Dec 2004 8:27 AM
Morten Wennevik
Hi Phil,

There isn't one specifically for Minimize/Maximize/Restore, but you can
test for FormWindowState.Maximized/Minized/Normal in the
Form.WindowState property in the SizeChanged event.


On Tue, 21 Dec 2004 14:20:14 +1300, Phil Jones 
<phil_newsgr***@hotmail.com> wrote:

> I'm no doubt missing the blindingly obvious here - but where's the event 
> on
> a Form that indicates that is has either been minimized or restored? (is
> there one?)
>
> Thanks everyone.
> ===
> Phil
>
>



--
Happy Coding!
Morten Wennevik [C# MVP]
Are all your drivers up to date? click for free checkup

Author
21 Dec 2004 8:59 AM
Picho
Or...

you can inherit from Form, add a new event and 'override' or 'new' the
WindowState.


"Morten Wennevik" <MortenWenne***@hotmail.com> wrote in message
news:opsjcm4in6klbvpo@pbn_computer...
Show quoteHide quote
> Hi Phil,
>
> There isn't one specifically for Minimize/Maximize/Restore, but you can
> test for FormWindowState.Maximized/Minized/Normal in the
> Form.WindowState property in the SizeChanged event.
>
>
> On Tue, 21 Dec 2004 14:20:14 +1300, Phil Jones
> <phil_newsgr***@hotmail.com> wrote:
>
>> I'm no doubt missing the blindingly obvious here - but where's the event
>> on
>> a Form that indicates that is has either been minimized or restored? (is
>> there one?)
>>
>> Thanks everyone.
>> ===
>> Phil
>>
>>
>
>
>
> --
> Happy Coding!
> Morten Wennevik [C# MVP]
Author
23 Dec 2004 2:40 AM
Phil Jones
Cool - thanks guys, that's enough to get me going.

Cheers!

Bookmark and Share