Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application->BringToFront ?

Status
Not open for further replies.

Sherak

Programmer
Sep 1, 2003
83
GB
Im having a problem with a application which checks the registry on start up, if it doesnt find certain keys it brings up a message box and depending on the users action it will close or bring up another message box, finaly opening the program, the problem is that the program does not stay on top after the first MB-YESNO box has been clicked by the user, and because the form has not opened yet the second message box is hidden behind any programs running, I have tried Application->Bringtofront but this does nothing it seems....

Any help muchly appriciated.....

Thanks
 
I had to make sure that I showed my startup forms in Modal mode in order to see them. How are you starting your reg check form?


James P. Cottingham
[sup]
There's no place like 127.0.0.1.
There's no place like 127.0.0.1.
[/sup]
 
use SetForegroundWindow

Ion Filipski
1c.bmp
 
Hi Sherak,

Is the application running on xp? is so then MessageBoxes may sometimes be shown behing a ModalForm. You have to add a extra flag MB_TOPMOST

Example,

Application->MessageBox("Please Select....", "", MB_OK | MB_ICONINFORMATION | MB_TOPMOST );
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top