471,071 Members | 949 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

Problem centering mdichild to parent screen

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
0 950

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Mickey Swanson | last post: by
5 posts views Thread by pei_world | last post: by
6 posts views Thread by Claus Holm | last post: by
2 posts views Thread by dean | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.