ssc456
Fully Optimized
- Messages
- 4,280
Hey Guys,
I've got this app in Winforms that has lots of user controls, nested within other user controls hosting third party controls like Telerik, Janus etc.
The problem I have is I load say 10 - 15 different controls per panel and then I need to show 1 panel on the screen at a time.
The problem is the controls don't seem to render until I show the panel onscreen, and it's all flicker and slow. (transparent background on them too!).
I've tried drawing the controls off-screen (ie -3000, -3000) and bringing them on, doesn't work, I've tried drawing the controls on a hidden panel, doesn't work. I've tried adding the controls to a panel and doing a DrawToBitmap doesn't work, double buffering is switched on for everything.
Any ideas?
I know ideally I should be using WPF and not Winforms but the whole app has already been written and i'm reluctant to re-write.
I've got this app in Winforms that has lots of user controls, nested within other user controls hosting third party controls like Telerik, Janus etc.
The problem I have is I load say 10 - 15 different controls per panel and then I need to show 1 panel on the screen at a time.
The problem is the controls don't seem to render until I show the panel onscreen, and it's all flicker and slow. (transparent background on them too!).
I've tried drawing the controls off-screen (ie -3000, -3000) and bringing them on, doesn't work, I've tried drawing the controls on a hidden panel, doesn't work. I've tried adding the controls to a panel and doing a DrawToBitmap doesn't work, double buffering is switched on for everything.
Any ideas?
I know ideally I should be using WPF and not Winforms but the whole app has already been written and i'm reluctant to re-write.