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