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
Marius Horak - 30 May 2007 13:03 GMT
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.
jweizman - 30 May 2007 13:32 GMT
How TabStop relates to performance ?
Also i was wondering how the Tab Control, was displaying the Tabpages
correctly without redrawing impression .
> What about
>
[quoted text clipped - 9 lines]
>
> PS. Remember, nothing is free.
Marius Horak - 30 May 2007 13:46 GMT
> How TabStop relates to performance ?
No idea. Maybe TabStop = false is not needed if Enabled = false.
MH
Mehdi - 30 May 2007 14:00 GMT
>> How TabStop relates to performance ?
>
> 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.