Home All Groups Group Topic Archive Search About

minimize button click event?

Author
12 Jun 2006 2:53 PM
Brad Melendy
Hello,
I'm looking for an onclick event for the minimize button but can't seem to
find it within the form properties.  I'd like to add code to hide my form
when it is minimized and suspect there is an onclick event I can use if only
I knew its name?  Thanks for any help.

.....Brad

Author
12 Jun 2006 3:10 PM
Ahmed
Take a look at the resize event. You can use the following code:

        If Me.WindowState = FormWindowState.Minimized Then
            'Do something
        End If

Cheers

Ahmed
Brad Melendy wrote:
Show quoteHide quote
> Hello,
> I'm looking for an onclick event for the minimize button but can't seem to
> find it within the form properties.  I'd like to add code to hide my form
> when it is minimized and suspect there is an onclick event I can use if only
> I knew its name?  Thanks for any help.
>
> ....Brad
Author
12 Jun 2006 3:30 PM
Brad Melendy
Thanks Ahmed, that worked like a charm!

Show quoteHide quote
"Ahmed" <ahmed1***@gmail.com> wrote in message
news:1150125004.337446.55490@g10g2000cwb.googlegroups.com...
> Take a look at the resize event. You can use the following code:
>
>        If Me.WindowState = FormWindowState.Minimized Then
>            'Do something
>        End If
>
> Cheers
>
> Ahmed
> Brad Melendy wrote:
>> Hello,
>> I'm looking for an onclick event for the minimize button but can't seem
>> to
>> find it within the form properties.  I'd like to add code to hide my form
>> when it is minimized and suspect there is an onclick event I can use if
>> only
>> I knew its name?  Thanks for any help.
>>
>> ....Brad
>
Author
12 Jun 2006 3:47 PM
Ahmed
Glad to hear that :)

Brad Melendy wrote:
Show quoteHide quote
> Thanks Ahmed, that worked like a charm!
>
> "Ahmed" <ahmed1***@gmail.com> wrote in message
> news:1150125004.337446.55490@g10g2000cwb.googlegroups.com...
> > Take a look at the resize event. You can use the following code:
> >
> >        If Me.WindowState = FormWindowState.Minimized Then
> >            'Do something
> >        End If
> >
> > Cheers
> >
> > Ahmed
> > Brad Melendy wrote:
> >> Hello,
> >> I'm looking for an onclick event for the minimize button but can't seem
> >> to
> >> find it within the form properties.  I'd like to add code to hide my form
> >> when it is minimized and suspect there is an onclick event I can use if
> >> only
> >> I knew its name?  Thanks for any help.
> >>
> >> ....Brad
> >
Author
12 Jun 2006 3:55 PM
Herfried K. Wagner [MVP]
"Brad Melendy" <b***@emp.state.or.us> schrieb:
> I'm looking for an onclick event for the minimize button but can't seem to
> find it within the form properties.  I'd like to add code to hide my form
> when it is minimized

See:

<URL:http://www.tsbradley.net/Cookbook/WinForms/minimizeEvent.aspx>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>