Solved

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

Posted on 2016-11-14
2
8 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
  • 2
2 Comments
 

Accepted Solution

by:
Member_2_7967119 earned 0 total points
Comment Utility
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
Comment Utility
I found the solution to center a modal form.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now