MsgBox Help
Posted: Wed May 16, 2012 5:42 am
I am trying to use MsgBox to display a message with yes no boxes and then use the results from the user to decide the next action. I am having troubles left and right. 1st Option Strict is having fits about conversions and if i turn off option strict the program executes but the"No" Button doesn't do any thing at all. I have tried to dim answer as an Integer aswell but it doesnt work either. How do i correct this issue. My goal is to have the user recieve the MsgBox ata certain point and then based on their decision (Yes or No)have the program repeat or not.
Any help would be appreciated.
Here is a sample of the code.
Any help would be appreciated.
Here is a sample of the code.
Code: Select all
Dim answer As MsgBoxResult
MsgBox("Congrats yadda yadda.",MsgBoxStyle.YesNo,"MsgBoxTitle.")
If MsgBoxResult.Yes Then
Yadda Yadda Whole Lot Of Code yadda yadda
Else
Default Msg
EndIf
Continue with Program
Continue with Program
Continue with Program
Continue with Program