[RESOLVED] ShowDialog() Issue/Question
Hello all,
I have a class library that I use for performing updates on applications. I have two forms in the library. The first form is shown using ShowDialog and runs a Backgroung worker to check for updates and update the form interface.
If a new update is found I open another dialog box (showing the information on What's new). This all works fine except that the second dialog box will NOT show in front. It shows minimized to the task bar every time.
Is there a way to get it to come to the front? I've tried bringtofront, topmost and nothing works.
Re: ShowDialog() Issue/Question
Are you displaying the last form on the same thread as the other two or different. If you're displaying it in the DoWork event then that's on a different thread and that would likely be at least part of your problem.
Re: ShowDialog() Issue/Question
Yep, it was running the second form from a background worker (DoWork). I swapped the from to be launched from a separate thread in the DoWork and it resolved the problem. Thanks for the tip!