Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox hidden
Message
From
07/06/2019 05:05:17
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
07/06/2019 03:05:26
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01624326
Message ID:
01668953
Views:
68
>Hi Fabio!
>
>Did you find a Solution?
>We have the Same behavior sometimes...
>
>>We have this problem.
>>When the program executes a MessageBox,
>>the message window does not appear in the foreground.
>>By pressing ALT in some cases it appears, but very often
>>we have to try several times.
>>
>>Does anyone have a solution?

Don't use messagebox. It's a foreign body, a form outside the app, the whole app loses focus, and besides it's so limited - you don't even get to define the buttons, you get to choose a combination of preset buttons. And the return values make no sense, why would 6 mean "yes"? And now with M$ changing its mind several times about new app windows taking focus or not, you can't even rely on messagebox always showing up.

Which is why I wrote alert.prg (https://www.levelextreme.com/Home/ShowHeader?Activator=17&ID=9445), or why Frederico Tomazetti adapted it into alert2: https://www.levelextreme.com/Home/ShowHeader?Activator=17&ID=16185.

BTW, later this year that piece of code will be 25 years old.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform