Results 1 to 2 of 2

Thread: focus, zorder etc....

  1. #1

    Thread Starter
    Join Date
    May 1999


    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.

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    MA, USA


    You could turn your Timer off for a while

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width