Panel Control covering my other controls... IDE BUG?
-
I am trying to figure something out. I have a panel control that contain other controls (I think, I am looking at some one elses code) but for some reason, I can't see the other controls. I can go to the properties window (the dropdown) and select them but I can't see them on my screen (they won't even highlight if I select them in the property dropdown). I right clicked on the panel control, and menued the "send to back" but nothing happens. Also sometimes, just sometimes all the controls do appear and then for some reason (unknown at this time) the all..... disappear... Anyone? Ralph
-
I am trying to figure something out. I have a panel control that contain other controls (I think, I am looking at some one elses code) but for some reason, I can't see the other controls. I can go to the properties window (the dropdown) and select them but I can't see them on my screen (they won't even highlight if I select them in the property dropdown). I right clicked on the panel control, and menued the "send to back" but nothing happens. Also sometimes, just sometimes all the controls do appear and then for some reason (unknown at this time) the all..... disappear... Anyone? Ralph
If you really want to know if the
Panel
contains those other controls, quick looking at the designer and look at the code. EveryControl
has aControls
property that contains a collection ofControl
s that are children of thet parentControl
. The other possibility is that there is some owner-drawing problem. Is this code overridingOnPaint
or handling thePaint
event on thePanel
? Somewhere in the initialization code, is the code usingSetStyle
to set styles incorrectly or overridingCreateParams
(if a derivative class)?Microsoft MVP, Visual C# My Articles