I'm coding in VC++.NET. For some reason, my messagebox is displayed below my application and is therefore hidden from the user. I can't get it to be modal either. Any ideas?

Recommended Answers

All 3 Replies

The MessageBox is from namespace System::Windows::Forms. i don't believe you can use SetForegroundWindow.

Here's more information: The MessageBox is both on top and modal when called from a nonstatic function. But in a static function, neither is the case. Workaround available?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.