Solved

Speed up drawing of windows forms

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now