vb.net - Object Lag behind Mouse -
label1 below moves right , left. how lag , "catchup" mouse pointer?
private xpos integer = 10 private sub me_paint(byval sender object, byval e system.windows.forms.painteventargs) handles picturebox1.paint dim lbl new label lbl.size = new system.drawing.size(xpos, 100) end sub private sub timer1_tick(byval sender system.object, byval e system.eventargs) handles timer1.tick lbl1.location = new point(mypicturebox.pointtoclient(new point(mouseposition.x, 0)).x, 100)
Comments
Post a Comment