centering a form
From: Scott Baxter (sbaxter_at_websearchstore.com)
Date: 07/11/04
- Next message: Jay Vinton: "RE: centering a form"
- Previous message: Zoury: "Re: How to check if IIS and SQL Server is installed on server?"
- Next in thread: Jay Vinton: "RE: centering a form"
- Reply: Jay Vinton: "RE: centering a form"
- Reply: Randy Birch: "Re: centering a form"
- Reply: J French: "Re: centering a form"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 10 Jul 2004 18:43:02 -0700
I have been trying to center a form on Windows 2000 using the following
subroutine:
Public Sub center(Anyform As Form)
Anyform.left = (Screen.Width - Anyform.Width) / 2
Anyform.tOp = (Screen.Height - Anyform.Height) / 2
DoEvents
End Sub
However, the form ends up on the lower right of the computer when
autostarted during windows startup.
If I run it in development mode, it works perfectly.
In startup mode the screen.height and width seem totally wrong.
What is the answer? Any help would be great.
Scott Baxter
- Next message: Jay Vinton: "RE: centering a form"
- Previous message: Zoury: "Re: How to check if IIS and SQL Server is installed on server?"
- Next in thread: Jay Vinton: "RE: centering a form"
- Reply: Jay Vinton: "RE: centering a form"
- Reply: Randy Birch: "Re: centering a form"
- Reply: J French: "Re: centering a form"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|