vb.net - Visual Basic Custom Progress Bar Not Moving -
i beginner in vb, , tried making progress bar 2 panels, front 1 isn't moving. code:
public class startup private sub timer1_tick(byval sender object, byval e system.eventargs) handles timer1.tick if front.width < me.width front.width = front.width + 10 end if if front.width = "1366" timer1.stop() login.show() me.close() end if end sub
what index said absolutely correct!
you should testing against number not string
if front.width = 1366 then
then note his/her second point! incrementing in steps of 10, pass 1366 without hitting it!
therefore should change if statement to
if front.width >= 1366 then
Comments
Post a Comment