-
Jul 12th, 2013, 08:05 AM
#1
Thread Starter
Hyperactive Member
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?
-
Jul 12th, 2013, 08:22 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|