c# - How to execute the code after ShowDialog() in Winforms? -


i have used showdialog() in winforms show screen , after showdialog() have written timer event. when close dialog box,the timer event gets called unless not getting executed.

could please me explaining scenario.

showdialog() synchronous. code after showdialog() not executed until dialog closed. evaluate dialogresult dialog after.

to solve problem execute things in parallel open dialog, you'd need start timer before showdialog() or use threading/backgroundworker.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -