Solved

Center a form and open modal dialog box in VB.net Application

Posted on 2016-11-14
2
23 Views
Last Modified: 2016-11-14
I have a VB.net windows application which has menu  items on the main form.

Each item of the menu (when clicked) opens another form.

I want each of this forms to be centered and also be a modal form.

How can I ensure this.
0
Comment
Question by:Member_2_7967119
[X]
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
  • 2
2 Comments
 

Accepted Solution

by:
Member_2_7967119 earned 0 total points
ID: 41885934
I am closing this question as I found the solution.

The solution is

  Me.StartPosition = FormStartPosition.CenterParent
           
 frmName.ShowDialog()
0
 

Author Closing Comment

by:Member_2_7967119
ID: 41885935
I found the solution to center a modal form.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to repeat the data 4 43
vb.net datagrid scroll automatically to the first found row 11 46
Adding Rows to Grid 4 32
VB.net SQL Connection String Read Only 4 18
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 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