Results 1 to 2 of 2

Thread: Open new form right close to top and left edge of main form

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    478

    Open new form right close to top and left edge of main form

    How to code a new form's location right close to the top and left edge of main form?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,350

    Re: Open new form right close to top and left edge of main form

    You need to set the new form's StartPosition to Manual and then set its Location based on the appropriate property(s) of the existing form. If you use the existing form's Location property value then the top, left corners of the two form's will be in the same position. You can also use the Top and Left properties and then perform the appropriate arithmetic to offset the new form as required. Once you've got the desired X and Y coordinates, create a new Point and set the form's Location.

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