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

Re: Controls Hide/Show display performance by Marius

Marius
Wed May 30 07:03:14 CDT 2007

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.

Re: Controls Hide/Show display performance by jweizman

jweizman
Wed May 30 07:32:26 CDT 2007


How TabStop relates to performance ?

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

On 30 mai, 14:03, "Marius Horak" <nob...@eu.con> wrote:
> 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.



Re: Controls Hide/Show display performance by Marius

Marius
Wed May 30 07:46:54 CDT 2007

jweizman wrote:

>
> How TabStop relates to performance ?

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

MH

Re: Controls Hide/Show display performance by Mehdi

Mehdi
Wed May 30 08:00:56 CDT 2007

On Wed, 30 May 2007 05:46:54 -0700, Marius Horak wrote:

> jweizman wrote:
>
>>
>> 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.