I am trying to draw in visual basic express edition 2008....
I have this code:
Imports System Imports System.Drawing Imports System.Windows.Forms Public Class Form1 Dim shouldpaint As Boolean Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load shouldpaint = False End Sub Private Sub Form1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDown shouldpaint = True End Sub Private Sub Form1_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseUp shouldpaint = False End Sub Private Sub Form1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove If shouldpaint = True Then Dim graphic As Graphics = CreateGraphics() graphic.FillRectangle _ (New SolidBrush(Color.Black), e.X, e.Y, 4, 4) End If End Sub End Class
However, when I draw very fast, there is a big distance between the dots.....how can I fix this ?
TIA

New Topic/Question
Reply




MultiQuote







|