Some DialogBoxes wich i generate automatic do not display in front of my homescreen. i have to activate them through the taskbar.
How can I force a DialogBox to be on top?
Printable View
Some DialogBoxes wich i generate automatic do not display in front of my homescreen. i have to activate them through the taskbar.
How can I force a DialogBox to be on top?
If you're talking about Messageboxes, then use the vbSystemModal Flag to bring it to the Front of everything else, ie.
MsgBox "Hi", vbSystemModal
If it's a Form, use the SetForeGroundWindow API, ie.
Code:Private Declare Function SetForegroundWindow Lib "user32" Alias "SetForegroundWindow" (ByVal hwnd As Long) As Long
Private Sub Form_Load()
Call SetForeGroundWindow(Hwnd)
End Sub
------------------
Aaron Young
Analyst Programmer
[email protected]
[email protected]
I do not use MsgBoxes. I use "UserDialogs" like this.
Begin Dialog UserDialog ,,244,96,"Message"
OKButton 56,64,132,18
Text 72,16,100,16,"Text",14
End Dialog
Dim Dialog_Message As UserDialog
r% = Dialog(Dialog_Mmessage,-2, 10000)