|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
minimize button click event?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 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 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 > 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 > > "Brad Melendy" <b***@emp.state.or.us> schrieb: See:> 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 <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/>
Auto-Updates using MSI
Set PrivateFont in browser richtextbox changing fontstyles for selected text is it possible to get delegates from properties directly? "Global" objects Parsing the appended data of log file in real time Control.BackColor Transparency, Control.BackColor = Color.Transparent XML-RPC Copying A Control Not As A Reference Change the rowspan, columnspan property of a button control in a TableLayoutPanel at runtime |
|||||||||||||||||||||||