'i using this code in the piicturebox1_paint
myusercolor=(sysytem.drawing.color.black)
myalpha=100
using g as graphics=graphics.fromimage(picturebox1.image)
g.clear(color.white)
dim currentpen as object=new pen(color.fromargb(myalpha,myusercolor),mypenwidth)
g.drawpath(ctype(currentpen,pen),mousepath)
end using
'using in the form_load '
picturebox1.image=new bitmap(.....)
'in the clearbutton_click '
picturebox1.image=nothing
by this code i have a problem that when i click the clear button the picturebox is cleared.but in the picturebox's mouseover the last drawn picture will appear.so i cant draw a new image ..