hi every 1. i am trying to make a logout message box where it says "Are you sure you want to logout" and the options are yes or No. If user clicks Yes it should logout and its hould show login screen and if user clicks No. It should show the same form or the option remains un changed. below is my code. The problem is even if i click No. it logs out and takes me to login screen.
Dim result As String
MsgBox("Are You Sure You Want To Logout", MsgBoxStyle.YesNo, MsgBoxResult.Yes)
result = MsgBoxResult.Yes
If result = MsgBoxResult.Yes Then
ElseIf result= MsgBoxResult.No Then