Yeah. "Me.close" is how you do it. Double click the button then it'll bring you to the code. Just type. Me.close
msgbox ("Thanks For Using My Device")
me.close ()
Here is a more detailed answer:
Me.Close() will just close the form you clicked X on (might be the whole application if it's only one form.
Close() will close the whole application.
Application.Exit() will close the whole application as well. The Application. class(?) has alot of options though, like Application.Restart(), etc.
Or be sneaky (a keylogger) with Me.Hide()