Message Box
Posted: Fri Mar 05, 2010 10:23 am
Although most of you already know how to do this, I will still post this for the VB ''newbs''.
cya wahooo;
Code: Select all
Dim msg As String
Dim title As String
Dim style As MsgBoxStyle
Dim response As MsgBoxResult
msg = "Do you want to continue?" ' Message you want to display
style = MsgBoxStyle.DefaultButton2 Or _
MsgBoxStyle.Critical Or MsgBoxStyle.YesNo
title = "MsgBox Demonstration" ' Msgbox title
response = MsgBox(msg, style, title)
If response = MsgBoxResult.Yes Then 'if user choses yes
' Doe iets.
Else
' Doe iets.
End If
cya wahooo;