Link to home
Start Free TrialLog in
Avatar of Paracom_Inc
Paracom_Inc

asked on

Prevent control flashing on multiple changes

I have a windows form with several buttons. When the user clicks a button some of the other controls on the form are made visible or invisible. Because of the way the logic works, a single button click may cause a control to become invisible and then visible. I'd like to keep the controls from being refreshed while the properties are being set and then refresh the form once the property settings are complete. There must be a way to do this. I've tried SuspendLayout() and ResumeLayout() but that has not worked? Please help. Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Paracom_Inc
Paracom_Inc

ASKER

I had to invalidate the items that I wanted to be drawn in their final state. But other than that this was just what I needed. Thanks!