IN VB6 MINIMIZE AND MAXIMIZE A FORM

I have a program wich does some checking. I use a timer to do this every 2 minutes
What would be the syntax to get this situation.
Private Sub tmrFaxen_Timer()
'=============================
If FileExist("faxsend.doc") = True Then
' WHAT SYNTAX HERE TO MAXIMIZE ???????  , SO USER SEES IT SEND THE FAX
SendMyFax
'HERE COMMING BACK AFTER SENDING FAX
'WHAT SYNTAX TO PUT BACK MINIMIZED????
End If
tmrFaxen.Interval = 120000  ' restart
End Sub

BIAPROAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fostejoCommented:
BIAPRO,

It's sounds like the WindowState property may well meet your requirements. You snippet would then look like:

Private Sub tmrFaxen_Timer()
'=============================
If FileExist("faxsend.doc") = True Then
  Me.WindowState=vbMaximized
SendMyFax
  Me.WindowState=vbMinimized
End If
tmrFaxen.Interval = 120000  ' restart
End Sub

Hope that helps..

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BIAPROAuthor Commented:
Ok, this works , only one qst,   this form is at start time set to  height  5000 and with 8600,
if reshows, it goes to full screen,  option to let it pop-up with original  size???

Thanks  ,
Jack
BIAPROAuthor Commented:
Me dummy, offcourse,  vbNormal  would do it,
Now is just fine
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.