473,403 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 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 1026

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mickey Swanson | last post by:
I have a MDI app wich has several different forms I need to call a method on one MDIchild form from another child form. I have a MDI form called frmMDI. I have a mdichild form called frmMain....
5
by: pei_world | last post by:
hi I have a app with one MDIparent and many MDIchildren forms I want to know a way such that those MDIchildren forms can communicate freely. I means, call any public function without creating an...
6
by: Claus Holm | last post by:
I'm trying to enable a menuitem in the parent form from a mdichild. Rather than making the menuitems public, I'd go for a public method in the parent form to do the change, but when I call the...
2
by: SpotNet | last post by:
Hello NewsGroup, I have a MDIParent form with a docked left treeview control, a splitter control and a generic docked control on the right. Kind of looks like Windows Explorer, though it's...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
1
by: LCAdeveloper | last post by:
Can anyone help me with this? I'm trying to get an MDIChild form to lookup the value of a control on another open MDIChild form, but can't seem to get the right syntax. Let's say the two child...
2
by: dean | last post by:
I have a MDIChild that brings up another MDIChild by clicking on a Button. After that the KeyDown does not respond. Does anyone know why? This link http://www.spamorrell.com/testapp.html has the...
3
by: MuZZy | last post by:
Hi, I wounder if someone could help me here: app has an MdiParent form - i need to get some notification in form of an event when any MdiChild forms are added to/removed from...
2
by: Thorgal | last post by:
Hello all I have 2 questions First: I'm trying to print a Listview from an mdichild but how can i address this listview. For example, FrmMain is my Main form. In this Main form I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.