Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

IN VB6 MINIMIZE AND MAXIMIZE  A FORM

Posted on 2006-03-23
3
Medium Priority
?
1,123 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

0
Comment
Question by:BIAPRO
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
fostejo earned 2000 total points
ID: 16268178
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..
0
 

Author Comment

by:BIAPRO
ID: 16268269
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
0
 

Author Comment

by:BIAPRO
ID: 16268392
Me dummy, offcourse,  vbNormal  would do it,
Now is just fine
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Loops Section Overview

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question