Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
QuestionFast Forms - Tricks of the Trade PLEASE Pin
redfish3412-May-06 21:05
redfish3412-May-06 21:05 
I am desparately trying to get my apps forms to load acceptably fast before release to users. I thought C# was suppose to be comparable to C++ in speed? It seems more like VB6 is a better comparison! I wish i knew the real deal before starting this project! I was lulled into a false sense of security when i kept reading about miracles on the internet about dramatic increases in performance with little tweaks. I thought a solution would come along sooner or later.

I am developing in NET 1.1. My computer is 1GHz Sony Laptop Windows 2K.

Description of my forms:

Combination of custom controls, forms, and user controls. By using panels and user controls as subforms, forms are up to 3 levels deep. Form have about 10-30 controls each on them. Controls used are stock labels, buttons, checkboxes, radio buttons, textboxes. Some forms have customized listviews and combos inherited from stock controls. All forms have button icons.

What i have done:

I have used the double buffering control style with AllPaintingInWmPaint and UserPaint in the forms, user controls and custom controls where i could. Code is in the constructor. I am using SuspendLayout, ResumeLayout to wrap control setup code that is outside the InitializeComponent method. It is called either in the constructor or Form Load. I tried precompiling assemblies. No performance gain there.

Double buffering slowed form load down but improved the sluggish drawing. Sluggish drawing persists. To describe, drawing of forms seems to be done in pieces, not all at once. Overall, the perception of loading has improved a notch, BUT NO MORE THAN A NOTCH! Frown | :( I will note that once the form loads the first time, future access during program excution is fast. It seems form graphics are cached by the CLR. But that first time loading! Ouch!

What can i do?


AnswerRe: Fast Forms - Tricks of the Trade PLEASE Pin
Robert Rohde12-May-06 22:35
Robert Rohde12-May-06 22:35 
QuestionRe: Fast Forms - Tricks of the Trade PLEASE Pin
Eddy Vluggen6-Aug-09 10:48
professionalEddy Vluggen6-Aug-09 10:48 
QuestionFinding File Paths from string Pin
abhinish12-May-06 21:05
abhinish12-May-06 21:05 
AnswerRe: Finding File Paths from string Pin
Ravi Bhavnani13-May-06 5:15
professionalRavi Bhavnani13-May-06 5:15 
AnswerRe: Finding File Paths from string Pin
DigitalKing13-May-06 9:00
DigitalKing13-May-06 9:00 
AnswerRe: Finding File Paths from string Pin
User 665813-May-06 9:39
User 665813-May-06 9:39 
Questionusing datarow array as data source Pin
Prashant Gadhave12-May-06 18:25
Prashant Gadhave12-May-06 18:25 
AnswerRe: using datarow array as data source Pin
led mike12-May-06 19:42
led mike12-May-06 19:42 
GeneralRe: using datarow array as data source Pin
Prashant Gadhave12-May-06 20:14
Prashant Gadhave12-May-06 20:14 
GeneralRe: using datarow array as data source Pin
led mike12-May-06 20:26
led mike12-May-06 20:26 
GeneralRe: using datarow array as data source Pin
Member 44517128-Sep-09 1:30
Member 44517128-Sep-09 1:30 
QuestionExplorer and filepath Pin
SoftcodeSoftware12-May-06 11:58
SoftcodeSoftware12-May-06 11:58 
AnswerRe: Explorer and filepath Pin
SoftcodeSoftware12-May-06 12:04
SoftcodeSoftware12-May-06 12:04 
Questiondraw inside a picturebox, how? Pin
Susuko12-May-06 11:45
Susuko12-May-06 11:45 
AnswerRe: draw inside a picturebox, how? Pin
leppie12-May-06 11:53
leppie12-May-06 11:53 
GeneralRe: draw inside a picturebox, how? Pin
Susuko12-May-06 23:57
Susuko12-May-06 23:57 
QuestionURGENT: Create hidden folder... Pin
SoftcodeSoftware12-May-06 10:38
SoftcodeSoftware12-May-06 10:38 
AnswerRe: URGENT: Create hidden folder... Pin
led mike12-May-06 11:00
led mike12-May-06 11:00 
GeneralRe: URGENT: Create hidden folder... Pin
led mike12-May-06 11:04
led mike12-May-06 11:04 
AnswerRe: URGENT: Create hidden folder... Pin
SoftcodeSoftware12-May-06 11:20
SoftcodeSoftware12-May-06 11:20 
QuestionDataset object viewing in tabular view in debug mode Pin
kumar.bs12-May-06 10:35
kumar.bs12-May-06 10:35 
QuestionInfragistics ultragrid control, very urgent help needed Pin
kumar.bs12-May-06 7:24
kumar.bs12-May-06 7:24 
AnswerRe: Infragistics ultragrid control, very urgent help needed Pin
Nish Nishant12-May-06 8:24
sitebuilderNish Nishant12-May-06 8:24 
QuestionImportent questions that I need very fast Pin
NaNg1524112-May-06 6:33
NaNg1524112-May-06 6:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.