How do I write code for a Messagebox/MsgBox in VB 2019

  • Thread starter Thread starter Gary Simpson
  • Start date Start date
G

Gary Simpson

Guest
Hi Good People

How is code written for a MsgBox or MessageBox in Visual Basic 2019, I am having trouble with the code I Use to use for a MsgBox.

Please can any of you good people show me the best way to write this code in Visual Basic 2019

Kind Regards

Gary

Dim Result As DialogResult
Result = MsgBox("Have You Forgotten Something", vbYesNo, MsgBoxStyle.Question, "Parts")
If Result = DialogResult.No Then
'Do Something
ElseIf Result = DialogResult.Yes Then
'Do Something Else
End If


Gary Simpson

Continue reading...
 
Back
Top