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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -