Solved

Speed up drawing of windows forms

Posted on 2003-12-03
5
326 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What namespace do I need to import? 2 38
SqlDataBase 7 53
VB.NET 2008 Winforms Signing 13 31
MailAddress in vb 4 29
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 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