• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 122
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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