We help IT Professionals succeed at work.

IN VB6 MINIMIZE AND MAXIMIZE  A FORM

jack niekerk
jack niekerk asked
on
Medium Priority
1,139 Views
Last Modified: 2012-06-22
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

Comment
Watch Question

Commented:
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..

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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

Author

Commented:
Me dummy, offcourse,  vbNormal  would do it,
Now is just fine
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.