Visual Inheritence, panels & disappearing controls

  • Thread starter Thread starter AP
  • Start date Start date
A

AP

Hi,

I have a base panel that has controls on it that I inherit from. In the
subclassed panel I then add new controls using the form designer. Somehow
these controls are now not showing up on the form designer. What can I do to
get them back and how do I stop this from happening?

Thanks,

Adam
 
I think I found the problem...it seems as though in my subclassed panel I
was adding controls to a group box that was private. I changed it to
protected and re-added the controls and it seems to work now. Funny that the
form designer would let you see private controls in your subclassed panel.
That has to be a bug.

Adam
 
There are heaps of bugs in the designer re visual inheritance. Properties
get lost, controls get moved, resizing forms with anchored controls
sometimes won't work properly. These bugs were in VS2002 and never got fixed
for VS2003 and still no sign of any service packs at all.

Cheers

Doug Forster
 
The move from Windows to .NET has been compared to the move from DOS to
Windows. I am starting to think we are therefore somewhere between VB1 and
VB2.
 
Back
Top