Sign in to follow this  

[.net] Tab style pannel flipping

Recommended Posts

I'm trying to set up a series of pannels that lie over one another, each containing different data. The top most pannel (the one that is currently visable) is set based on some event. The behavior is similiar to the way tabs work, but without the tabs. The problem I am having is that currently when I swap them I set the pannels visable property to false (for the one that was previously visable) then take the one that should be visable next and set it's visable property to true. That has the desired behavior (with the old panel hiding and the new one showing) but with the problem that all the components on the new one kind of 'flicker' there way onto the screen when the panel is made visable. Does anyone know how to get around this (maybe in the panels paint function) so that it draws everything before it shows, rather than drawing each piece and causing some graphical disturbance. I know it's possible because with tabs things are always smooth and instantanious.

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