Help with placing focus on button in message box
Posted on 2012-03-20
I am using the code below for users to decide Yes/No, is there a way to place the focus on No automatically and they would only need to press Enter or Click on it? Below is the code I am using.
Dim anadd As String
anadd = MsgBox("Are you sure you want to Add this record?", MsgBoxStyle.YesNo, "Warning before Attempting Adding record")
If anadd = MsgBoxResult.Yes Then
code is executed.....
I am using ASP.NET