General information
Title:
Bring to front from DLL
I've written a replacement for VB's MsgBox, but when called by a DLL it hides behind other windows. I've tried a number of things that should have worked (e.g., SetWindowPos), but nothing seems to. What does work is specifying the foreground window as the parent form when I display my form (i.e., Me.Show vbModal, ParentForm), but I don't always know the parent. With GetForegroundWindow I can get the parent's hWnd, but this doesn't get me the object reference I would need for the Show method.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only