I have a separate thread that handles data transfer operations (with a mobile
device). I've set things up so that a small notification form is displayed
in the lower right corner of the window. This all works fine.
But what I can't figure out how to do is to get it to display on top of my
main form, if the main form is maximized. I've tried all of the following:
statusForm = new frmNotify();
statusForm.Show(); // Display Notification Window asynchronously
statusForm.Focus();
BringWindowToTop((int) statusForm.Handle);
SetForegroundWindow(statusForm.Handle);
With the last two being API calls. But nothing seems to work. I KNOW that
this notification form will display over top of the main form because I can
do so manually but I can't seem to do so programmatically. What am I missing?
--
Robert W.
Vancouver, BC
www.mwtech.com