I have a main form and I have menu's that open up within the form, but when I open a menu they open off the form. What do I need to do to make the forms open at the center of the main form?

Thanks

Recommended Answers

All 3 Replies

There is a property on the form itself called "StartPosition" -- Set it to center parent.

this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;

You're welcome and good luck!

Please mark this thread as solved if I have answered your question.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.