SetFocus to a form on top of Switchboard

treva26

Registered User.
Local time
Today, 01:58
Joined
Sep 19, 2007
Messages
113
Hi,

I have a form that opens up when a user logs in to the database showing him any unfinshed transactions he needs to complete.

I have set it to open in the OnCurrent event of the Switchboard, and also do a SetFocus command at the end of the OnCurrent event (and I thought that was the last event to occur).

But when it opens, the Switchboard always ends up on top.
How can I get my [SAVED ECLs] form to end up on top?

HYCH,
Trevor.
 
Could it be that your switchboard is set to POPUP, which could keep it on top of other forms.
 
No, POPUP is set to NO
 
It seems like its doing the OnCurrent events and THEN displaying the Switchboard form.
This is when it first starts up.
Is that correct?
 
Last edited:
Just subscribing so I can follow this to see if anyone has a workaround! Indeed what is happening, I think, is that the code is triggering and opening the notification form before displaying the switchboard. I've seen the same behavior occur when the FormCurrent event has a messagebox set to appear if certain conditions are met. Everything works fine unless the first record meets the criteria to fire the messagebox; then the messagebox appears before the form itself appears!
 
Well now I have it set up so that it opens the form and displays a msgbox.
So the first thing u see is the msgbox that u have to click ok on.
Only then does the Switchboard pop up over the form that opened.
So at least the user cant miss the fact that he has unfinished work to do.

It is very strange that this only happens with the Switchboard form.
But then I guess thats Microsoft for you...
 
Why not try setting this form's popup and modal to yes.

This should force the form you want to be on top and users can not view any other form until this one is closed. (including your switchboard.)
 

Users who are viewing this thread

Back
Top Bottom