PDA

Click to See Complete Forum and Search --> : focus, zorder etc....


richie
Nov 7th, 1999, 06:55 AM
Hi everybody!,

Okay, I picked up this line of code that keeps the mdichild form in the background - on top of the MDIparent, but every other mdichild loads on top of it.

I simply attached a timer and then:

Private Sub Timer1_Timer()
On Error Resume Next
If Screen.ActiveForm.MDIChild Then ZOrder 1
End Sub

However, it seems that, while this works, it is causing me some SERIOUS hassle. For example, the 'Open', 'Save' and 'Print' buttons on my mdichild forms don't work - it seems the focus keeps going back to the form with the code above.

Here's what I mean exactly: When I click, say, the 'Open' button on my form, the Open Common Dialog control display appears, but none of the buttons work, becuase the focus goes back so quickly to the form with the code above. Does anyone know how I can solve my problem?

Help would be much appreciated.

QWERTY
Nov 7th, 1999, 07:19 AM
You could turn your Timer off for a while

------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.