Groups | Blog | Home
all groups > dotnet windows forms > may 2007 >

dotnet windows forms : Controls Hide/Show display performance


jweizman
5/30/2007 2:39:46 AM
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
5/30/2007 5:03:14 AM
What about

to hide:

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

and to show do the opposite.

MH

jweizman
5/30/2007 5:32:26 AM

How TabStop relates to performance ?

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

[quoted text, click to view]

Marius Horak
5/30/2007 5:46:54 AM
[quoted text, click to view]

No idea. Maybe TabStop = false is not needed if Enabled = false.

Mehdi
5/30/2007 2:00:56 PM
[quoted text, click to view]

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
AddThis Social Bookmark Button