Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
AnswerRe: Avoid showing rebuild activity on the form Pin
leppie6-Mar-06 6:01
leppie6-Mar-06 6:01 
GeneralRe: Avoid showing rebuild activity on the form Pin
fracalifa6-Mar-06 8:24
fracalifa6-Mar-06 8:24 
QuestionTransparacy key fix? Pin
Dave McCool6-Mar-06 3:45
Dave McCool6-Mar-06 3:45 
QuestionHelp Me (Directx) Pin
hackerhcm6-Mar-06 3:33
hackerhcm6-Mar-06 3:33 
QuestionForcing NET to Precompile EXE Pin
redfish346-Mar-06 3:03
redfish346-Mar-06 3:03 
AnswerRe: Forcing NET to Precompile EXE Pin
SJ_Phoenix6-Mar-06 3:20
SJ_Phoenix6-Mar-06 3:20 
AnswerRe: Forcing NET to Precompile EXE Pin
leppie6-Mar-06 3:23
leppie6-Mar-06 3:23 
GeneralNgen.exe is Urban Legend (Myth) Pin
redfish348-Mar-06 21:59
redfish348-Mar-06 21:59 
leppie, thanks for your advice.

I precompiled my exe using Ngen.exe and no performance gain was observed. It makes sense since most of the assemblies used by my app are already precompiled NET assemblies. So i add Ngen.exe to my long book of Microsoft urban legends (myths).

I then tried a hack. I attempted to force precaching of forms by automating user interaction off-screen. I click buttons and cause forms to appear so they get cached. After this is done, the precached forms are presented to the user. Requires some dancing in the WndProc with custom messages. You need to wait until after the paint event to get the cached form. This works as long as the form is mostly visible on screen. When form is mostly offscreen, it does not work. This was a hopeful hack, but it came to a dead end.

So after a long trip i have concluded that C# and all the NET languages, is not significantly different than VB6 in GUI performance. This is a disappointment. Luckily i used mostly Win32 calls in my app and not NET equivalents and so porting to C++ will not be to much of a problem.




GeneralRe: Ngen.exe is Urban Legend (Myth) Pin
leppie8-Mar-06 22:11
leppie8-Mar-06 22:11 
AnswerRe: Forcing NET to Precompile EXE Pin
Le centriste6-Mar-06 7:57
Le centriste6-Mar-06 7:57 
QuestionShaped Window! Pin
Sabry19056-Mar-06 2:04
Sabry19056-Mar-06 2:04 
AnswerRe: Shaped Window! Pin
Eric Dahlvang6-Mar-06 2:49
Eric Dahlvang6-Mar-06 2:49 
QuestionDatabase Pin
J51219826-Mar-06 1:54
J51219826-Mar-06 1:54 
AnswerRe: Database Pin
Colin Angus Mackay6-Mar-06 4:37
Colin Angus Mackay6-Mar-06 4:37 
QuestionTreeNodes Sort Pin
ar43r6-Mar-06 1:31
ar43r6-Mar-06 1:31 
AnswerRe: TreeNodes reverse sort Pin
ar43r6-Mar-06 22:22
ar43r6-Mar-06 22:22 
QuestionAdd-ons for C# .net 2003 Pin
Dave McCool6-Mar-06 1:06
Dave McCool6-Mar-06 1:06 
QuestionSelecting from DataTable ( \' - dont work) Pin
Monin D.6-Mar-06 1:06
Monin D.6-Mar-06 1:06 
AnswerRe: Selecting from DataTable ( \' - dont work) Pin
Christian Graus6-Mar-06 1:08
protectorChristian Graus6-Mar-06 1:08 
QuestionRe: Selecting from DataTable ( \' - dont work) Pin
Monin D.6-Mar-06 1:24
Monin D.6-Mar-06 1:24 
AnswerRe: Selecting from DataTable ( \' - dont work) Pin
Guffa6-Mar-06 2:07
Guffa6-Mar-06 2:07 
QuestionSearch button Pin
Dave McCool6-Mar-06 0:50
Dave McCool6-Mar-06 0:50 
AnswerRe: Search button Pin
Christian Graus6-Mar-06 1:07
protectorChristian Graus6-Mar-06 1:07 
GeneralRe: Search button Pin
Dave McCool6-Mar-06 3:38
Dave McCool6-Mar-06 3:38 
GeneralRe: Search button Pin
Christian Graus6-Mar-06 4:20
protectorChristian Graus6-Mar-06 4:20 

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.