Hi everyone and thanks for reading my question!
This is my first topic related on vb.net!
I want to implement an exit button with yes/no option in vb.net.
Here's what I've tried:
Dim intrebare As String
intrebare = MsgBox("Doriti parasirea aplicatiei?", MsgBoxStyle.YesNo)
If intrebare = "Yes" Then ' if we press yes it quits vb.net
'here is the problem how to say him if he selects yes to quit from 'visual studio 2008?
'Me.Close() if I select yes I want that it exits my full 'software , so exits visual studio 2008 is it possible?
Else
'ok
Me.Close()
No syntax error the problem is that even if I select yes or no it returns to me to the initial form. I want to return me on initial form only if I press No Button of MessageBox.