If you use a literal value of 750 then your form will always be displayed this number of units (not sure if they're pixels or twips or what - doesn't matter) from the top of the screen. Depending on the screen resolution this value will be a different proportion of the screen height. I don't think the physical dimensions of the screen make any difference - it is only the screen resolution that matters. You will be able to test your code by changing your screen resolution from the Control Panel.
You may be better off deciding what fraction of the screen height you want the offset to be and then coding like this.
VB Code:
' Place form 5% of the way down the screen. Move Screen.Width - Width, Screen.Height * ( 5 / 100 )




Reply With Quote