Hi Ong, have a look at the "visible" property of your form as well. if not myform.visible or (myform.Windowstate=wsMinimized) then ... have fun. Bob (do you celebrate eastern in your country?)
> Hi all, > > In my application, i want to do the checking if an application is in > the minimized state, i try > > If Main.WindowState = wsMinimized then > // perform my action here > else > // perform another action > > But it doesnt seems to works. Anyone can help? Thanks in advance. > > Regards: > Ong ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

