I'm setting up the login part of my system, but I'm having a big problem. My cancel button on the login screen it needs to receive two features. The first is that being clicked before the main system screen is opened the application is all finished. If the main screen is already open it is to do the second functionality that would be canceling the user exchange at run time! That is, the cancellation of the logout, the user exchange canceled. However for the logic that I am using it works, it has to be passed by an if, so the logout click is an ItemMenu of a MainMenu. If I use it like this
if FrmPrincipal.Logout1.Click = True then
It accuses error of incompatible type If I use this another way
if FrmPrincipal.Logout1.OnClick
It's the error and does not spin. That's what I wanted to know ... how do I get an ItemMenu to run in an if loop.