Jey Geethan
Jey Geethan

Reputation: 2285

MsgBox is coming below the Splash screen in VB.NET

I have a splash screen set using the Application Framework. In my main form, I check for some conditions in Load() event of the MainForm and display a MsgBox if some of them fails.

But the problem is, the MsgBox comes below the Splash Screen. Is there any way to correct this?

Upvotes: 4

Views: 3446

Answers (3)

Pardeep Kumar
Pardeep Kumar

Reputation: 21

You can simply add a line in Message box style setting.

msgbox("Hello", MsgBoxStyle.MsgBoxSetForeground)

And if your are already using some other style setting such as MsgboxStyle.YesNo then simply add 'Or' in between two settings like.

msgbox("Hello", MsgBoxStyle.YesNo Or MsgBoxStyle.MsgBoxSetForeground)

This one worked fine for me

Upvotes: 2

Fake
Fake

Reputation: 498

Try this link: http://www.codeproject.com/KB/install/TopMostMessageBox.aspx

It's in C# but it could be converted easily using a conversion tool (I'd post a link to that but since I'm a new user it's only letting me post 1 link..)

Upvotes: 4

SLaks
SLaks

Reputation: 887867

Show the MsgBox in the splash form's Shown event.

Upvotes: 3

Related Questions