how can i make my messagebox always on top and block the user from accessing any windows until the user hit the OK button in the messagebox
thanks in advance
Are you sure the user wants that? It might be possible but it depends on what system/GUI library you use.
what i want to do is to display an error msg and prevent the user from clicking any items except the ok or close button of the msgbox
Then maybe is a good idea to use a secure desktop (the same behavior as windows User Account Control popup or some antivirus vendors uses when trying to disable them).