Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cancel displays all hidden controls
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01143283
Message ID:
01143637
Vues:
7
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform