By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,693 Members | 1,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,693 IT Pros & Developers. It's quick & easy.

Problem centering mdichild to parent screen

P: n/a
Hi

I'm having a problem centering my child window within its parent. It is
opening docked top left.

Form properties as follows:

frmMain (IsMdiContainer = true)
frmPCASelection (StartPosition = CenterParent)
Extract of form code as follows:

Public Class frmMain

Inherits System.Windows.Forms.Form
Private WithEvents PcaSelectForm As frmPCASelection

Private Sub mnuPCA_Click(ByVal sender As System.Object, ByVal e As _
System.EventArgs) Handles mnuPCA.Click
PcaSelectForm = New frmPCASelection
PcaSelectForm.MdiParent = Me
PcaSelectForm.Show()
End Sub

End Class

Any ideas what I'm doing wrong. Have I missed something obvious?

Regards

Michael Bond

Feb 16 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.