In the timer loop, have it check for a marker variable from your other forms 
eep.

Remember that timers run in their own thread, so you can set the timer to 
check for the marker pretty often.

Same way to close the MDI form, by checking for a marker in the timer eep.

I have done this several times.  It works fine.



----- Original Message ----- 
From: "Dennis McGrath" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Thursday, September 06, 2012 11:40 AM
Subject: [RBASE-L] - Re: lost focus


I am using MDI forms

Unfortunately, that won't work in my case.

I need to act instantly before control goes to wherever.

I'm wishing for form OnGotFocus and OnLostFocus eeps.

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mike Byerley
Sent: Thursday, September 06, 2012 8:28 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: lost focus

Any thing I want to run like that, I put in an MDI form.. Visible = false.
Use Timer event in the Form to run your code.


----- Original Message ----- 
From: "Dennis McGrath" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Thursday, September 06, 2012 8:47 AM
Subject: [RBASE-L] - lost focus


Is there a way to run code when a form loses focus?

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]

--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]

(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
================================================


Reply via email to