Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 79
  • Last Modified:

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

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
Member_2_7967119
Asked:
Member_2_7967119
  • 2
1 Solution
 
Member_2_7967119Author Commented:
I am closing this question as I found the solution.

The solution is

  Me.StartPosition = FormStartPosition.CenterParent
           
 frmName.ShowDialog()
0
 
Member_2_7967119Author Commented:
I found the solution to center a modal form.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now