visual studio 2010 - Message Box showing multiple times when progress bar complete in VB.NET -
i trying progress bar, it's not showing popup correctly. when utilize msgbox, appears 100s of times , when utilize form2 replacing msgbox maintain showing close it.
public class form1 private sub button2_click(byval sender system.object, byval e system.eventargs) handles button2.click timer1.start() end sub private sub timer1_tick(byval sender system.object, byval e system.eventargs) handles timer1.tick progressbar1.increment(1) if progressbar1.value = progressbar1.maximum msgbox("done") end if end sub end class
if want show message 1 time stop timer before message box
private sub timer1_tick(byval sender system.object, byval e system.eventargs) handles timer1.tick progressbar1.increment(1) if progressbar1.value = progressbar1.maximum timer1.stop() msgbox("done") end if end sub
vb.net visual-studio-2010 progress-bar msgbox
No comments:
Post a Comment