Results 1 to 10 of 10

Thread: error 9 runtime

Hybrid View

  1. #1

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Sep 2004
    Posts
    86

    Re: error 9 runtime

    Move (Screen.Width) - Width, 750
    Move (Screen.Height) + 750

    for me this is the exact location but is this good for every screen or not

  3. #3
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536

    Re: error 9 runtime

    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:
    1. ' Place form 5% of the way down the screen.
    2. Move Screen.Width - Width, Screen.Height * ( 5 / 100 )
    This world is not my home. I'm just passing through.

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