Dear All,
I have some textboxes and dropdown boxes in a panel control. When I
disable the panel control in Form Load event. The Panel disables but I
can write in the text box and select anything in the dropdownlist.Which
I dont want. I want the whole panel and everything inside it to be disabled
Any help much appreciated.
Cheers,
Sunil SabirMake sure that you are also setting the visible property of the panel to
false, otherwise, the panel itself may be disabled, but it will still be
visible and all the controls in it. To ensure that all the controls in the
panel are disabled, you could walk through each item in the panels control
collection to disable them individually, though this is a bit of a pain, it
is effective.
Hope tihs helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
"Sunil Sabir" <SunilSabir@.discussions.microsoft.com> wrote in message
news:B6B73B36-EE6A-4703-81AF-F33D7C1FC7B6@.microsoft.com...
> Dear All,
> I have some textboxes and dropdown boxes in a panel control. When
I
> disable the panel control in Form Load event. The Panel disables
but I
> can write in the text box and select anything in the
dropdownlist.Which
> I dont want. I want the whole panel and everything inside it to be
disabled
> Any help much appreciated.
> Cheers,
> Sunil Sabir
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment