Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bring to front from DLL
Message
From
14/09/1999 06:20:27
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
Bring to front from DLL
Miscellaneous
Thread ID:
00264356
Message ID:
00264356
Views:
57
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
Map
View

Click here to load this message in the networking platform