Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / May 2007

Tip: Looking for answers? Try searching our database.

Controls Hide/Show display performance

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jweizman - 30 May 2007 10:39 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.