Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Open form in the center of the parent form

Posted on 2011-09-16
3
383 Views
Last Modified: 2013-11-27
Hey.

Can anyone suggest a code that opens a form centered to the parent form from where it was originally ran from?
0
Comment
Question by:Here2Help
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Dennis Aries earned 125 total points
ID: 36549611
Use the property 'Startposition' of the form. Set it to 'CenterParent'
0
 
LVL 8

Author Comment

by:Here2Help
ID: 36549790
Wow, how did I miss that lol.
cheers
0
 
LVL 18

Expert Comment

by:Dennis Aries
ID: 36549839
It has been in VB-forms since VB5.0 :) Beforere that, we used to have standard code to position a form in the form_load-event. Things have become a lot easier since then. ;)

Have fun coding.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question