• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

Speed up drawing of windows forms

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
ACanadian
Asked:
ACanadian
  • 2
  • 2
1 Solution
 
TonylmillerCommented:
Are you compiling in "Release" mode?
0
 
ACanadianAuthor Commented:
I am was compiling in Debug mode. I tried compiling in Release mode, should there have been a difference?

0
 
TonylmillerCommented:
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
 
ACanadianAuthor Commented:
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
 
sohilmCommented:
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now