Jump to content

[Resolvido] Form Closing


Recommended Posts

Dim dr As DialogResult
	dr = MsgBox("Deseja Fechar ?", MessageBoxButtons.YesNo, "Fechar")
	If DialogResult.Yes Then

		My.Settings.Checked = True
		My.Settings.Selected = TextBox1.Text
		My.Settings.Selected1 = TextBox2.Text
		My.Settings.Text = TextBox1.Text
		My.Settings.Text1 = TextBox2.Text
		My.Settings.Clicked = True

	ElseIf DialogResult.No Then
		My.Settings.Checked = False
		My.Settings.Clicked = False
		e.Cancel = True
	End If

O Me.Show foi uma tentativa de por aquilo a não fechar.

Está aqui.

Edited by Caça
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.