Timer runs automatically on a MsgBox vb.net -


i trying make validation user able choose between 2 different results msgbox , if no 1 selected close. method got not working.

this code using make validation:

    private sub watcher_idle(sender object) handles watcher.idle         dim result = messagebox.show("the application close because lot of time off.", "are sure?", messageboxbuttons.yesno)          if result = dialogresult.yes             end         elseif result = dialogresult.no          elseif timer4.interval = 3000             timer4.start()             end         end if     end sub 

if user select yes application close, if user select no doesn't , if user not select 3 secs or application close automatically. last step not making anything. not work.

do have idea doing wrong?


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -