Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Position popup form to cover main application window

Status
Not open for further replies.

bradles

Technical User
Sep 15, 2002
110
AU
Have tried the clsFormWindow code from without success:

Code:
Dim frmWindow As New clsFormWindow
    With frmWindow
        .hWnd = me.hWnd
        .top = .Parent.top
        .left = .Parent.left
        .Width = .Parent.Width
        .Height = .Parent.Height
    End With
    Set frmWindow = Nothing

We work in a terminal server environment with dual screen setups, and this code fails when the Access app is positioned to the right.

Before I work on debugging the class, has anyone used a simpler solution?

Brad Stevens
 
How are your forms setup? Are they both modal or not modal? That could make a difference in this or any code running properly.

Also, one way to open any form would be:

Code:
DoCmd.OpenForm "MyFormName" 
[green]'You probably do not need any options here.  
'I suppose you could set the Window size properties if needed.[/green]

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top