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?

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 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.