Solved

Speed up drawing of windows forms

Posted on 2003-12-03
5
317 Views
Last Modified: 2010-04-16
Hello Gurus,

It seems pretty sad to me that a C# windows form with about 100 controls, tabcontrols, text boxes, etc. Can't be drawn instantly.  Is there a way to draw my screens faster?  

I look froward to any and all suggestions.

ACanadian
0
Comment
Question by:ACanadian
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:Tonylmiller
ID: 9871821
Are you compiling in "Release" mode?
0
 

Author Comment

by:ACanadian
ID: 9871928
I am was compiling in Debug mode. I tried compiling in Release mode, should there have been a difference?

0
 
LVL 4

Expert Comment

by:Tonylmiller
ID: 9874255
I thought with 100 controls it might make a difference.  I've never had that many controls on a form before.  Is it feasible to break it down into multiple forms?
0
 

Author Comment

by:ACanadian
ID: 9876657
Well,

Its a form that has three tabs on it, and in total there are 75 controls. 25 / tab.  All the information is pertinent, it just doesn't make sense that it should take a couple seconds for the screen to load.

I think if I broke the screen into smaller parts it would become less effecient for the end user.

ACanadian
0
 
LVL 3

Accepted Solution

by:
sohilm earned 125 total points
ID: 9893196
My suggestion to you is to build the fields on each tab dynamically. In other words. If the user is in tab 1 and he selects tab 2, all of tab1 fields are disposed off and the tab 2 fields are regenrated. You can probalby copy the code for the controls right from auto generated code.

Sohil
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question