Click here to Skip to main content
15,895,423 members
Home / Discussions / C#
   

C#

 
GeneralRe: dockable window? using MDI? Pin
h@s@n10-Nov-06 3:07
h@s@n10-Nov-06 3:07 
QuestionComboBox SelectedIndexChanged Pin
freshonlineMax8-Nov-06 1:34
freshonlineMax8-Nov-06 1:34 
AnswerRe: ComboBox SelectedIndexChanged Pin
Martin#8-Nov-06 1:48
Martin#8-Nov-06 1:48 
AnswerRe: ComboBox SelectedIndexChanged Pin
ednrgc8-Nov-06 2:51
ednrgc8-Nov-06 2:51 
GeneralRe: ComboBox SelectedIndexChanged Pin
freshonlineMax8-Nov-06 3:03
freshonlineMax8-Nov-06 3:03 
GeneralRe: ComboBox SelectedIndexChanged Pin
ednrgc8-Nov-06 3:05
ednrgc8-Nov-06 3:05 
QuestionHigh CPU load caused by this.Invalidate(myRegion); [modified] Pin
Mike Novy8-Nov-06 1:33
Mike Novy8-Nov-06 1:33 
AnswerRe: High CPU load caused by this.Invalidate(myRegion); Pin
vineas8-Nov-06 4:27
vineas8-Nov-06 4:27 
Is the display actually changing on each timer cycle? If it's not, you'd be better off driving the display off of changes in the data that creates the graphs as opposed to simply redrawing on each cycle no matter what. You could make this change to your code with very little work - do this data changing validation on the timer. In the long run, it'd be better to get rid of the timer completely, and make the drawing event driven, but at least you could check out the difference this way.


Also, with the invalidation of rectangles that you're doing - are you actually using the clip rectangle in your drawing code? If you're not actually using the clip recangle directly to determine what needs to be drawn, then the only speed gains you're getting is by GDI+ itself clipping, and that shouldn't be very significant (from your comment, it seems this is the case). Don't take this the wrong way - most of the GDI or GDI+ code I've seen that does this sort of thing has either ignored the clip rectangle or used it incorrectly - it can be difficult initially to use the clip rectangle correctly, and some apps may not benefit from it anyway - yours sounds like it would though.

-----
In the land of the blind, the one eyed man is king.

GeneralRe: High CPU load caused by this.Invalidate(myRegion); Pin
Mike Novy8-Nov-06 5:48
Mike Novy8-Nov-06 5:48 
GeneralRe: High CPU load caused by this.Invalidate(myRegion); Pin
vineas8-Nov-06 6:49
vineas8-Nov-06 6:49 
GeneralRe: High CPU load caused by this.Invalidate(myRegion); [modified] Pin
Mike Novy8-Nov-06 7:44
Mike Novy8-Nov-06 7:44 
GeneralRe: High CPU load caused by this.Invalidate(myRegion); Pin
vineas8-Nov-06 8:06
vineas8-Nov-06 8:06 
GeneralRe: High CPU load caused by this.Invalidate(myRegion); Pin
Mike Novy8-Nov-06 8:46
Mike Novy8-Nov-06 8:46 
GeneralRe: High CPU load caused by this.Invalidate(myRegion); Pin
vineas8-Nov-06 9:20
vineas8-Nov-06 9:20 
GeneralRe: High CPU load caused by this.Invalidate(myRegion); Pin
Mike Novy8-Nov-06 9:52
Mike Novy8-Nov-06 9:52 
GeneralRe: High CPU load caused by this.Invalidate(myRegion); Pin
vineas8-Nov-06 10:46
vineas8-Nov-06 10:46 
Questionhow to get a date format mm.dd.yyyy( e.g. 12.31.2006) Pin
yogita charhate8-Nov-06 0:36
yogita charhate8-Nov-06 0:36 
AnswerRe: how to get a date format mm.dd.yyyy( e.g. 12.31.2006) Pin
Colin Angus Mackay8-Nov-06 0:44
Colin Angus Mackay8-Nov-06 0:44 
GeneralRe: how to get a date format mm.dd.yyyy( e.g. 12.31.2006) Pin
yogita charhate8-Nov-06 1:27
yogita charhate8-Nov-06 1:27 
QuestionHow Create Nonrectangular form in c#.net 2005 Pin
mohammadSoft8-Nov-06 0:30
mohammadSoft8-Nov-06 0:30 
AnswerRe: How Create Nonrectangular form in c#.net 2005 Pin
c_onica8-Nov-06 2:14
c_onica8-Nov-06 2:14 
QuestionHow to access from objects from other class Pin
signimage8-Nov-06 0:26
signimage8-Nov-06 0:26 
AnswerRe: How to access from objects from other class Pin
Colin Angus Mackay8-Nov-06 0:42
Colin Angus Mackay8-Nov-06 0:42 
AnswerRe: How to access from objects from other class Pin
quiteSmart8-Nov-06 0:56
quiteSmart8-Nov-06 0:56 
AnswerRe: How to access from objects from other class Pin
Mairaaj Khan8-Nov-06 1:07
professionalMairaaj Khan8-Nov-06 1:07 

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.