Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancel displays all hidden controls
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01143283
Message ID:
01143637
Views:
8
Patrick,

>I have a winforms mmMaintenanceForm where specific controls are intially Visible = false.
>
>These are Shown/Hidded at runtime in a ComboBox SelectedIndexChanged event, depending on the SelectedValue.
>
>When I do a Cancel, all hidden controls are shown, Visible = true.
>The SelectedIndexChanged event isn't fired.
>
>I moved the UI update code in the SelectedIndexChanged event into a private method, and called it again in the HookPostCancel event. Works fine but seems kludgey.
>
>Any suggestions?

Make sure you turn off the AutoSetEnabled property on these controls. Check out the MM .NET Dev Guide topic "Automatically Disabling and Enabling Controls" for details.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform