Windows forms and message box
-
Hello, I am working on a windows application with MDI form. Here in FIND functionality, a find form displayed with Find button working on "Enter" key. The Find form functionality is in a different dll. I am accessing that dll to display find form on existing MDIChild form containing the data. While this form is open, any messagebox displayed from the Find form is displayed on top. but the messages that are appearing from the MDIChild form are sometimes appearing behind the Find form. Even if I opened any other form, sometimes it is also appearing behind this Find form. Please let me know how should I bring these messages/new forms on Top? Thanks in Advance, Nivedita
-
Hello, I am working on a windows application with MDI form. Here in FIND functionality, a find form displayed with Find button working on "Enter" key. The Find form functionality is in a different dll. I am accessing that dll to display find form on existing MDIChild form containing the data. While this form is open, any messagebox displayed from the Find form is displayed on top. but the messages that are appearing from the MDIChild form are sometimes appearing behind the Find form. Even if I opened any other form, sometimes it is also appearing behind this Find form. Please let me know how should I bring these messages/new forms on Top? Thanks in Advance, Nivedita
-
Hello, I am working on a windows application with MDI form. Here in FIND functionality, a find form displayed with Find button working on "Enter" key. The Find form functionality is in a different dll. I am accessing that dll to display find form on existing MDIChild form containing the data. While this form is open, any messagebox displayed from the Find form is displayed on top. but the messages that are appearing from the MDIChild form are sometimes appearing behind the Find form. Even if I opened any other form, sometimes it is also appearing behind this Find form. Please let me know how should I bring these messages/new forms on Top? Thanks in Advance, Nivedita
It's either the Owner or Parent property. You need to set one of these for all child windows, and then they can never go behind their owner.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )