Controls Hide/Show display performance

  • Thread starter Thread starter jweizman
  • Start date Start date
J

jweizman

Hi

I have a quite complex GUI in C#, where i save space by using many
Panels, Pictures which hosts controls.

When the user needs a function, i hide the "olds" panel, pictures..
then show the necessary ones.

All these visible=true/false are killing my app in terms of display
performance and give vey bad impression.

Can someone help me how to improve ?

Thanks
Jonathan
 
What about

to hide:

myControl.Enabled = false;
myControl.TabStop = false;
myControl.Top = -20000;

and to show do the opposite.

MH

PS. Remember, nothing is free.
 
How TabStop relates to performance ?

Also i was wondering how the Tab Control, was displaying the Tabpages
correctly without redrawing impression .
 
No idea. Maybe TabStop = false is not needed if Enabled = false.

I suppose that whoever put this TabStop = false did that to avoid your
hidden control to gain focus when the user uses the Tab key to switch
between controls.
 
Back
Top