In the MouseMove: (It will draw dozens of times???)
Dim g as Graphics = pic.Graphics
g.ForeColor = ColorSelected
g.FillOval X, Y, 3, 3
2 things:
MouseMove fires even if the mouse button is not pressed… is that what you expected?
Also, to avoid unnecessary drawing
[code]static oldx as integer
static oldy as integer
static g as Graphics
if g is null then g = pic.Graphics
g.ForeColor = ColorSelected
if x <> oldx or y <> oldy then
g.FillOval X, Y, 3, 3
oldx = x
oldy = y //wont draw again until the mouse has actually moved
end if[/code]