im making a paint program and this is my paint window's code,
Public Class Form2
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
'
'Form2
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.Color.White
Me.ClientSize = New System.Drawing.Size(304, 266)
Me.Name = "Form2"
Me.Text = "New Object"

End Sub

#End Region

Private m_Drawing As Boolean
Private m_LastX As Integer
Private m_LastY As Integer

' Start scribbling.
Private Sub Form2_MouseDown(ByVal sender As Object, ByVal e _
As System.Windows.Forms.MouseEventArgs) Handles _
MyBase.MouseDown
m_Drawing = True
m_LastX = e.X
m_LastY = e.Y
If Form1.my_tool = "Line" Then
If Form1.my_line_step = "Start" Then
Form1.my_line_start = Me.MousePosition()
Form1.my_line_step = "End"
End If
End If
End Sub

' Continue scribbling.
Private Sub Form2_MouseMove(ByVal sender As Object, ByVal e _
As System.Windows.Forms.MouseEventArgs) Handles _
MyBase.MouseMove
If m_Drawing Then
If Form1.my_tool = "Pencil" Then
Me.CreateGraphics().DrawLine(Form1.my_pen, m_LastX, _
m_LastY, e.X, e.Y)
m_LastX = e.X
m_LastY = e.Y
End If
If Form1.my_tool = "Splinter" Then
Me.CreateGraphics().DrawLine(Form1.my_splinter, m_LastX, _
m_LastY, e.X, e.Y)
m_LastX = e.X
m_LastY = e.Y
End If
If Form1.my_tool = "Eraser" Then
Me.CreateGraphics().DrawLine(Form1.my_eraser, m_LastX, _
m_LastY, e.X, e.Y)
m_LastX = e.X
m_LastY = e.Y
End If
End If
If Form1.my_tool = "Line" Then
If Form1.my_line_step = "Draw" Then
Me.CreateGraphics().DrawLine(Form1.my_pen, _
Form1.my_line_start.X, Form1.my_line_start.Y, _
Form1.my_line_end.X, Form1.my_line_end.Y)
Form1.my_line_step = "Start"
End If
End If
Me.CreateGraphics().DrawLine(Form1.my_line, 0, 0, 10, 100)
End Sub

' Stop scribbling.
Private Sub Form2_MouseUp(ByVal sender As Object, ByVal e _
As System.Windows.Forms.MouseEventArgs) Handles _
MyBase.MouseUp
m_Drawing = False
If Form1.my_tool = "Line" Then
If Form1.my_line_step = "End" Then
Form1.my_line_end = Me.MousePosition
Form1.my_line_step = "Draw"
End If
End If
End Sub
End Class

all of the functions there but the line tool works, why dosent the line? it gets the points, i checked with a msgbox.... but it dosnet draw it.