Results 1 to 2 of 2

Thread: Window position [Resolved]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    127

    Question Window position [Resolved]

    I have a question about window positioning relative to the parent window. I know I can set the properties of a form for StartPosition Center Parent and when the form is opened from a link or button on the parent form the second form will open in the center of that form.

    My question.... say that Center Parent isn't quite the exact location that you would like the form to open at. Is there a method of modifying or creating the Load postion X, Y so that it is still refrenced to the position of the parent other than changing the info in the Properties section?

    Example: the second form that is opened would open more to the top of the parent form instead of the center of the parent.

    Thanks in advance for ideas....
    Last edited by teamdad; Jul 4th, 2004 at 09:04 AM.

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    In the load event of the child form:

    VB Code:
    1. Me.Top = Me.Top -  100
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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