Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27329

MsgBox or MessageBox.Show doesn't show.

$
0
0
Hello,

I need help displaying a MsgBox (I know this sounds pathetic, but read on).

When I try showing a MsgBox using the MsgBox() function, I just get nothing.
VB.NET Code:
  1. Dim MsgBox_Result As Integer = MsgBox(Msg, Msg_buttons, Msg_Title)

But, when I try showing a MsgBox using the MessageBox.Show() function, it returns that the default button was pressed. However, the messege box didn't show.
VB.NET Code:
  1. Dim MsgBox_Result As Integer = MessageBox.Show(Msg, Msg_Title, Msg_buttons, Msg_icon, Msg_defaultb, MessageBoxOptions.ServiceNotification)

This is a Windows Forms app that is started by a service. NOTE: When I start the app by itself, everything works fine.

Environment: Microsoft Visual Studio Express 2012 for Windows Desktop with the target framework set to 4.0.

Maxwell.

P.S.Attachment 94699
Attached Images
 

Viewing all articles
Browse latest Browse all 27329

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>