471,321 Members | 1,768 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Custom panels

I trying to create 2 custom panels. Panel 1 can only contain objects of type
panel2 and panel2 can only contain certain objects.

At design time if I drop panel2 in panel1, panel1 does not become the
parent. I have to set it in code. Also, if I click on panel2 when its parent
has been set, I cannot click on and drag panel2 at all. I can only change
its location by change the X & Y properties of location.

Any suggestions as to what could be going wrong?

Jan 13 '06 #1
1 1125
Hi Buddy,

Thanks for your post.

For parent, I assume that you mean the container, yes? That is panel2 is
added into panel1.Controls property collection.

I have just tried to drag 2 panels on the designer, both VS.net2003 and
VS2005 will work well: designer will generate the following code:

Also, I can drag the pane2 with position changing without any problem.

So I suggest you try this on some other machines. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Jan 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by pfnus | last post: by
reply views Thread by Lloyd Dupont | last post: by
2 posts views Thread by Caesar Augustus | last post: by
3 posts views Thread by Charles Zhang | last post: by
2 posts views Thread by Jay Dee | last post: by
reply views Thread by rosydwin | 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.