Click here to Skip to main content
15,923,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB.Net Help Needed - this is a tough one Pin
Dave Kreskowiak12-Apr-05 5:09
mveDave Kreskowiak12-Apr-05 5:09 
GeneralEditing Word documents Pin
Martin@captivasystems12-Apr-05 2:55
Martin@captivasystems12-Apr-05 2:55 
GeneralRe: Editing Word documents Pin
Dave Kreskowiak12-Apr-05 5:03
mveDave Kreskowiak12-Apr-05 5:03 
QuestionHow Can We make combination Please try.... Pin
KiranQ12-Apr-05 2:17
sussKiranQ12-Apr-05 2:17 
AnswerRe: How Can We make combination Please try.... Pin
Dave Kreskowiak12-Apr-05 5:00
mveDave Kreskowiak12-Apr-05 5:00 
General.NET Macro: problem while using DTE.ItemOperations.OpenFile Pin
magilvia12-Apr-05 1:30
magilvia12-Apr-05 1:30 
GeneralUI optimization (.net framework seems slow) Pin
carlos_rocha12-Apr-05 0:14
carlos_rocha12-Apr-05 0:14 
GeneralRe: UI optimization (.net framework seems slow) Pin
Dave Kreskowiak12-Apr-05 4:53
mveDave Kreskowiak12-Apr-05 4:53 
<soapbox>Hundreds of controls on one form? Yuk! No, seriously, from a users standpoint, Yuk! Talk about information overload.</soapbox>


carlos_rocha wrote:
Can anybody tell me performance tips for UI optimization when the application is loading, because when the application is loading it takes to long to draw all the controls and then resizing them!!!

Let me guess... You stuck all these controls on various tab pages, layed everything out nice and neat and then setup every controls anchoring so that the resize and reposition themselves as needed.

Am I correct? Here's a hint on what you did. Let's say you have 600 controls on 10 tab pages. That's 60 controls per page. Now, when the user sits in front of your application, he/she only sees the first 60 controls and can only interact with those 60. But, whenever the form is resized, the layout engine has to call the resize event handler for all 600 controls, not 60. So, your forcing A LOT of calculation you don't want to do because you can't see those controls.

What to do...? What to do...?

Unfortunately, the only optimization technique is to break that massive form down into smaller forms and skip using tab pages. Search for ways to get the number of controls down. For example, if there are 3 out of those 10 tab pages that deal with a specifc subject matter, break those pages into their own form.

You're simply not going to get the performance you want because of the thousands of calculations you generated to figure out the new positions and sizes of controls you can't even see. So why reposition them?



carlos_rocha wrote:
And what about at compilation time? Is there some options to enable (or disable) in order to make the app quicker?

In a Release version compile, the optimations are already turned on.


carlos_rocha wrote:
Another thing is the jit debugger. Doesn't it slow down the application?How to turn it off?

You can't! When you launch the application, the Just-In-Time compiler turns your Intermmediate Language code (which won't run on a single processor in the world!) and turns it into machine specific code that the processor can run.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: UI optimization (.net framework seems slow) Pin
carlos_rocha12-Apr-05 6:01
carlos_rocha12-Apr-05 6:01 
GeneralRe: UI optimization (.net framework seems slow) Pin
Dave Kreskowiak12-Apr-05 6:17
mveDave Kreskowiak12-Apr-05 6:17 
GeneralHelp Needed Pin
Praphulla11-Apr-05 20:39
Praphulla11-Apr-05 20:39 
GeneralRe: Help Needed Pin
vertig073012-Apr-05 4:16
vertig073012-Apr-05 4:16 
QuestionCan i develope Client Server Application with access Pin
payal sheth11-Apr-05 19:08
payal sheth11-Apr-05 19:08 
AnswerRe: Can i develope Client Server Application with access Pin
Christian Graus11-Apr-05 19:27
protectorChristian Graus11-Apr-05 19:27 
GeneralRe: Can i develope Client Server Application with access Pin
rwestgraham11-Apr-05 20:25
rwestgraham11-Apr-05 20:25 
GeneralRe: Can i develope Client Server Application with access Pin
Christian Graus11-Apr-05 23:33
protectorChristian Graus11-Apr-05 23:33 
GeneralRe: Can i develope Client Server Application with access Pin
Dave Kreskowiak12-Apr-05 4:19
mveDave Kreskowiak12-Apr-05 4:19 
GeneralRe: Can i develope Client Server Application with access Pin
rwestgraham12-Apr-05 8:31
rwestgraham12-Apr-05 8:31 
GeneralRe: Can i develope Client Server Application with access Pin
Dave Kreskowiak12-Apr-05 9:08
mveDave Kreskowiak12-Apr-05 9:08 
GeneralRe: Can i develope Client Server Application with access Pin
rwestgraham12-Apr-05 9:57
rwestgraham12-Apr-05 9:57 
GeneralRe: Can i develope Client Server Application with access Pin
Dave Kreskowiak12-Apr-05 12:24
mveDave Kreskowiak12-Apr-05 12:24 
GeneralRe: Can i develope Client Server Application with access Pin
rwestgraham12-Apr-05 14:15
rwestgraham12-Apr-05 14:15 
AnswerRe: Can i develope Client Server Application with access Pin
Abhaypppppppppp12-Apr-05 2:10
sussAbhaypppppppppp12-Apr-05 2:10 
AnswerRe: Can i develope Client Server Application with access Pin
vertig073012-Apr-05 4:10
vertig073012-Apr-05 4:10 
GeneralProblems Displaying Forms Pin
Chris Quick11-Apr-05 18:10
Chris Quick11-Apr-05 18:10 

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.