I have a windows application written in C#. When the app started, it create new thread to run some background process while the main thread is idle. The background thread will show a dialog box. I found that the dialog box will be hidden if I click on the main UI.
The question is how can I make the dialog box is own by the main UI? I know that by setting the TopMost property to true will make the dialog stay on top of the screen, but I don't want this.
Please help.