Using panel control in Web forms

  • Thread starter Thread starter kellydotnetnewbie
  • Start date Start date
K

kellydotnetnewbie

Does anyone know why, when adding a panel to a web form,
the text boxes, labels, buttons, etc. are hidden behind
the panel, but drop-down lists are not? Every time I make
my panel visible (pnlError.visible = true), I have to make
the drop-down lists invisible (lstProgram.visible =
false). Any advice is appreciated, thanks
 
This has to do with IE and not with VS.NET. In IE, dropdown lists are
always painted on the topmost surface. This is why dropdowns seem to appear
above everything they are near. So, there is no way to fix this.

I believe, from your description, that you are putting a panel over a set of
controls to hide the controls. What I would do instead is add all of the
controls to the panel. Then make the panel visible to show the controls and
make the panel invisible to hide the controls.

Jeff
 
Back
Top