Click here to Skip to main content
15,911,646 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionvb.net handles clause requires a withevents variable Pin
User 540919027-Oct-09 11:12
User 540919027-Oct-09 11:12 
QuestionCLR Profiler - too many objects??? Pin
Member 332970027-Oct-09 8:12
Member 332970027-Oct-09 8:12 
AnswerRe: CLR Profiler - too many objects??? Pin
Member 332970027-Oct-09 22:54
Member 332970027-Oct-09 22:54 
QuestionGDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) [modified] Pin
rudozkv_new27-Oct-09 8:11
rudozkv_new27-Oct-09 8:11 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
Henry Minute27-Oct-09 10:51
Henry Minute27-Oct-09 10:51 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
rudozkv_new27-Oct-09 22:36
rudozkv_new27-Oct-09 22:36 
AnswerRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
freakyit27-Oct-09 21:35
freakyit27-Oct-09 21:35 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
rudozkv_new27-Oct-09 22:35
rudozkv_new27-Oct-09 22:35 
So I will answer also in points.
For first:
I tried to draw with double buffer method. I found on internet something like this. I added dispose for bmp and grap objects. Doesn't help.

For second:
I am not sure if I understand what did you write. I try to explain it one more time. I have grid control (with its own drawing function). Later grid control will also draw some other objects, like text boxes, etc... So the main form uses its own OnPaint (without overwriting or handling, ruler and grid have its own overwritten OnPaint method).

For third:
I replaced two Invalidate (for each control) with one invalidate(true) for owner form. Doesn't help. Can you give me some good example of how to use overwriting of usercontrol OnPaint ?

From my point of view it looks like ctrGrid control receive an event to repaint itself. Meanwhile (lets say in same time) ctrlRuler receive an event to repaint itself.
Re-painting of grid (due drawing huge rectangles) takes longer time. During this time will come another request to repaint both controls. And it happens that, the only grid control is repainted.
I don't know why grid control has bigger cadence of of re-painting, maybe it was added to owner form first.Confused | :confused:
I also hope you will help.
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
freakyit27-Oct-09 23:01
freakyit27-Oct-09 23:01 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
rudozkv_new27-Oct-09 23:18
rudozkv_new27-Oct-09 23:18 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
freakyit27-Oct-09 23:34
freakyit27-Oct-09 23:34 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
rudozkv_new28-Oct-09 3:16
rudozkv_new28-Oct-09 3:16 
GeneralRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
freakyit29-Oct-09 1:13
freakyit29-Oct-09 1:13 
AnswerRe: GDI+ drawing - invalidate big rectangle in one user control then invalidate another user control (problem with big rectangle) Pin
rudozkv_new28-Oct-09 23:09
rudozkv_new28-Oct-09 23:09 
Questionc#.net Pin
Amit Spadez26-Oct-09 23:38
professionalAmit Spadez26-Oct-09 23:38 
AnswerRe: c#.net Pin
Shameel26-Oct-09 23:59
professionalShameel26-Oct-09 23:59 
GeneralRe: c#.net Pin
Amit Spadez27-Oct-09 0:03
professionalAmit Spadez27-Oct-09 0:03 
GeneralRe: c#.net Pin
Covean27-Oct-09 0:16
Covean27-Oct-09 0:16 
GeneralRe: c#.net Pin
Amit Spadez27-Oct-09 0:17
professionalAmit Spadez27-Oct-09 0:17 
GeneralRe: c#.net Pin
Covean27-Oct-09 0:20
Covean27-Oct-09 0:20 
GeneralRe: c#.net Pin
Amit Spadez27-Oct-09 0:24
professionalAmit Spadez27-Oct-09 0:24 
GeneralRe: c#.net Pin
Covean27-Oct-09 0:34
Covean27-Oct-09 0:34 
QuestionTabbed ListBox in a Web Page Pin
MarkyMark196126-Oct-09 8:21
MarkyMark196126-Oct-09 8:21 
AnswerRe: Tabbed ListBox in a Web Page Pin
Not Active26-Oct-09 8:31
mentorNot Active26-Oct-09 8:31 
GeneralRe: Tabbed ListBox in a Web Page Pin
MarkyMark196126-Oct-09 8:41
MarkyMark196126-Oct-09 8:41 

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.