Hi,
I'm new to Windows apps having done everything so far in ASP.NET.
I have an application that has a timer within the main form. Every 5 minutes it checks the database for notifications and if any are due it displays the details in a messagebox. If the main form is the active form, it works fine (message displayed). Even if I create another form and display that modally, the message is still displayed. If I minimize this second form, the message is displayed.
However, if I am writing an email when the timer is called, the message box isn't displayed on top.
Is there any way to make sure the MessageBox.ShowDialog method always displays the dialog as topmost?
I have tried using a new form instead of MessageBox.Show, setting the TopMost property to true, but that didn't work, either.
I'm new to Windows apps having done everything so far in ASP.NET.
I have an application that has a timer within the main form. Every 5 minutes it checks the database for notifications and if any are due it displays the details in a messagebox. If the main form is the active form, it works fine (message displayed). Even if I create another form and display that modally, the message is still displayed. If I minimize this second form, the message is displayed.
However, if I am writing an email when the timer is called, the message box isn't displayed on top.
Is there any way to make sure the MessageBox.ShowDialog method always displays the dialog as topmost?
I have tried using a new form instead of MessageBox.Show, setting the TopMost property to true, but that didn't work, either.