Hi, I have problem with DragDrop. I trying to move reactangle along with te cursor.
How can i simulate Flip method from DDraw to avoid flickering?
Code:
Private Graphic as Graphics= Panel1.CreateGraphics
Private Sub Panel1_DragOver(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles frm.DragOver
Dim NewP = New Point(e.x,e.y)
Dim rec As New Drawing.Rectangle(NewP, SelCtl.Size)
Graphic.Clear(frm.BackColor)
Graphic.DrawRectangle(Penk, rec)
end sub
How can i simulate Flip method from DDraw to avoid flickering?