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

VS 2010 MSGBOX not displaying, OK being automatically selected.

$
0
0
As per the Title, I can only assume I have set some kind of option without realising I have done so, but some MSGBOXes work !!!

This works ...

Code:

        If ComboBox1.SelectedItem = Nothing Then            myErrorMsg = "No League Selected"
            MsgBox(myErrorMsg, MsgBoxStyle.Exclamation)
            Exit Sub
        End If

This, however, does NOT work & I get a message on the right hand side of the screen that says

Quote:

User Prompt: Clicked "OK" The user clicked the "OK Button in the MessageBox
Code:

        If File.Exists(myRARfile) Then
            ZipTest()
        Else
            myErrorMsg = "ERROR - Aborting ..."
            MsgBox(myErrorMsg, vbCritical)
            MSWord.Quit()
            Exit Sub
        End If

This is very frustrating :confused:, so if somebody can tell me what on earth is going on here, I'll be eternally grateful !!!

Viewing all articles
Browse latest Browse all 27156

Trending Articles



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