Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42312

Yes and No buttons not firing in msgbox

$
0
0
Hi I have a windows form project. I have changed something in my project that has stopped my msgbox's from working. When you click on a button nothing happens. They used to work!!

I have set up a test on my project and put

Code:

        Dim box444 As MsgBoxResult = MsgBox("yes NO", MessageBoxButtons.YesNo)
        If box444 = MsgBoxResult.Yes Then
            MsgBox("oh yes", MessageBoxIcon.Information)
        End If

in my form1_load method.

This will show a message box with Yes and No Buttons on it. But when I press either button nothing happens.

I have created a new project put this code in and it works fine. I realise I have done something to the project but I cannot for the life of me figure out what.

Target Framework 3.5
Visual Studio 2012

Hope you can help
Paul

Viewing all articles
Browse latest Browse all 42312

Trending Articles



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