1. Is this the best way to position a window when it is shown? ================================================= Declare Function GetSystemMetrics Lib "user32.dll" (ByVal nIndex As Integer) As Integer
'Returns screen width in pixels intScreenWidth = GetSystemMetrics(0) 'Returns screen height in pixes intScreenHeight = GetSystemMetrics(1) Main.Left = (intScreenWidth - Main.Width)/2 Main.Top = (intScreenHeight - Main.Height)/2 ================================================= 2. Where is the best place to put window positioning code? I tried placing it the window's open event or is there a better place for it? I appreciate your help, Steve Hedgepeth _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>