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

.NET (Core and Framework)

 
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 
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 
hi,

now try to add a Panel to the Form1 with Property AutoScroll to true.
than dock you Usercontrol1 into the Panel with DockStyle.Fill;

in your Usercontrol1 i don't understand why you are creating a bitmap to show the result on the usercontrol instead of painting directly to the usercontrol.

try this example do not print debugger output because this could be an indicator why its a slowly painting..

Private Sub OnPaintPic1(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
        Dim rcPaper = Me.ClientRectangle
        Dim time_start As DateTime = Now
        Dim t_span As TimeSpan

        e.Graphics.FillRectangle(Brushes.DarkGray, rcPaper)
        e.Graphics.DrawRectangle(Pens.Black, rcPaper)
        ' Draw the grid.
        ' If bShowGrid Then
        For x As Integer = 0 To rcPaper.Width Step 10
            For y As Integer = 0 To rcPaper.Height Step 10
                e.Graphics.DrawLine(Pens.Azure, x, y, x + 0.5F, y + 0.5F)
            Next y
        Next x
        'End If
        
        t_span = Now - time_start

    End Sub

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 
GeneralRe: Tabbed ListBox in a Web Page Pin
Not Active26-Oct-09 8:52
mentorNot Active26-Oct-09 8:52 
GeneralRe: Tabbed ListBox in a Web Page Pin
MarkyMark196126-Oct-09 9:00
MarkyMark196126-Oct-09 9:00 
GeneralRe: Tabbed ListBox in a Web Page Pin
Not Active26-Oct-09 9:05
mentorNot Active26-Oct-09 9:05 
GeneralRe: Tabbed ListBox in a Web Page Pin
MarkyMark196126-Oct-09 9:09
MarkyMark196126-Oct-09 9:09 
GeneralRe: Tabbed ListBox in a Web Page Pin
MarkyMark196126-Oct-09 9:04
MarkyMark196126-Oct-09 9:04 

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.