this works but not for me
Thanks,
That was a good idea. I tried this with two forms in the same project and it worked great. Unfortunately, when showing this form from the dll I no longer get a form Deactivate event!?
So, this is what I did, but it's not working from the dll.
Code:
Private Sub Form_Deactivate()
' Force this form to the top of the window list
' Emulates modeless form operation with main app's form as parent
Debug.Print "frmPartSetup Deactivated"
SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE Or SWP_NOACTIVATE
End Sub
Any more ideas?
trying to do something different
Well,
I was passing a class into the form at startup, so I made a Display method to receive the class and show the form. It didn't work to call the SetWindowPos in this method, so I tried other things, albeit some squirrelly things.
Anyway, to make a long story short, I simplified the way I displayed the form and everything works.
Thanks for the help,