ok...
im making a paint program, and when the user is going to draw a straight line, he has to do as in mspaint: hold down shift....
the problem is when the program is going to calculate the m value and the k value of the line...

here's a bit of the code:

If Shift = 1 Then
KValue = (Y - StartY) / (X - StartX)
MValue = Y - X * KValue
End If

but it cant do the division!! it gives me the overflow error!
why?