I am in the process of developing an MDI application in VB.NET (2005). Anyway, my child form refuses to center the parent forms' bounds. I have tried setting the 'startposition' via the properties menu. I have also tried setting the 'startposition' with code in the parent form's load procedure. Here is the code I used.
frmMain.StartPosition = FormStartPosition.CenterParent
This line is placed after I declare frmMain as a child form and before I call the Show method.
Note: frmMain is the name of the child form. This caused a bit of confusion in the WindowsForms forum. My parent form is named frmMDI. I see no reason as to why my code is not working. Whenever I run the application, the child form is loading in the default upper-left hand corner of it's parent form.
If anybody has a possible solution, I would greatly appreciate it. Thanks for any help.
B.H.Also, does anybody have a link to an article dealing with embedding forms within other forms. I vaguely remember reading an article on form embedding, but can't figure out where.