V
vodiox
We have a MDI application write in VB6. It's a complex application so
it is not reasonable to rewrite the entire the program in .net, now.
We have developed some .Net WindowForm and now we want to use them in
the MDI application. We tried to use SetParent WinAPI to make the
WindowForm a
mdichild (setting WS_CHILD and unsetting WS_POPUP with SetWindowLong
API).
The problem is that the .Net WindowForms are always on top respect
other VB6 MDI Child.
VB6 Forms can't move to the front of .net WindowForm in MDI Space.
We tried playing around with the TopMost properties of a form and that
didn't work (setting TopMost property and using SetWindowPos WinAPI).
We also tried playing around with the z-order and that didn't work
either.
Anyone can help us.
it is not reasonable to rewrite the entire the program in .net, now.
We have developed some .Net WindowForm and now we want to use them in
the MDI application. We tried to use SetParent WinAPI to make the
WindowForm a
mdichild (setting WS_CHILD and unsetting WS_POPUP with SetWindowLong
API).
The problem is that the .Net WindowForms are always on top respect
other VB6 MDI Child.
VB6 Forms can't move to the front of .net WindowForm in MDI Space.
We tried playing around with the TopMost properties of a form and that
didn't work (setting TopMost property and using SetWindowPos WinAPI).
We also tried playing around with the z-order and that didn't work
either.
Anyone can help us.