all groups > vb.net controls > november 2006 >
You're in the

vb.net controls

group:

Annoying Panels behavior



Annoying Panels behavior Steve
11/5/2006 4:22:51 PM
vb.net controls: I'm having a strange problem that I never had back in VB6 and can't figure
out how to deal with it.

I have a simple forms app with several navigation buttons on a form that
show and hide an adjacent set of panels. These panels present several pages
of the app's user interface.

I created each panel as a child of the form. No panel is a child of another
panel. But ... if, in the form designer, I position any of the panels so
that its top-left is inside of another panel, and then run the app, the
inside panel is treated as a child of the outside panel. This is not the
behavior I'd expect. It seems you can make one panel a child of another
panel just by dragging it inside. How do I prevent this?


Re: Annoying Panels behavior Herfried K. Wagner [MVP]
11/5/2006 10:35:24 PM
"Steve" <Steve@nospam.com> schrieb:
[quoted text, click to view]

Set the panels' position either by code or in the properties window instead
of dragging them around.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
AddThis Social Bookmark Button