Jump to content
Sign in to follow this  
zfisherdrums

Retrieving control-rendering status of Windows Form

Recommended Posts

zfisherdrums

An .NET application I'm working with has two tabs. When I select a tab to make its controls visible, the application hangs for a bit before displaying them.

Is there a way to programatically determine if a window has rendered (painted) all of its controls?

Edited by zfisherdrums

Share this post


Link to post
Share on other sites
zfisherdrums

Zedna,

Yes. That is one way. Thank you for the suggestion.

The problem is that the controls change dynamically depending on an option selected in a ListView.

> Option 'X' exposes 'Control1' which, when pressed, invokes behavior 'X'

> Option 'Y' exposes 'Control1' which, when pressed, invokes behavior 'Y'

So 'Control1' is the common denominator, but its context changes. I was looking for a way around hard-coding wait states. Looks like I may have to do that anyway.

Thanks again for your reply and your help.

Edited by zfisherdrums

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×