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

Dock ordering messed up when using my custom controls

P: n/a
LeesWizard : BaseWizard : UserControl

LeesWizardPage1 : WizardPage : UserControl

LeesWizard contains a collection of WizardPages. Each WizardPage already
contains a docked panel at the top. At design-time, when I add other panels
and dock them, things look fine. But when I close the form and re-open it,
the docking order is messed up, such that the panel I manually added now
fills up the entire surface area. So, I'm stumped. My hunch was that I
need to do something with ISupportInitialize interface?

Anybody know what I'm doing wrong?

Thanks,
Lee
Jan 31 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Okay, here's an update on this problem:
[VS2005-SP1]

I created a simple UserControl derivative. I drop that onto a form. Then I
try to drop a panel onto the UserControl. It works, but I notice that the
parent ends up being the Form itself. I need the parent of the panel to be
the UserControl, otherwise Docking won't work. What am I missing?
--
Lee
Feb 1 '07 #2

P: n/a
Okay, second problem solved by adding this attribute:

[Designer(typeof(System.Windows.Forms.Design.Scroll ableControlDesigner))]
public class WizardPage : UserControl
{}

Still have my original problem.
--
Lee
Feb 1 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.