Controls Hide/Show display performance

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
 
M

Marius Horak

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.
 
J

jweizman

How TabStop relates to performance ?

Also i was wondering how the Tab Control, was displaying the Tabpages
correctly without redrawing impression .
 
M

Mehdi

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top