RobotStudio event

Flexpendant sdk - CloseMe behavior


I'm a complete newbie to flexpendant sdk.

I'm struggling with a simple issue that maybe somenone already found the solution.
I created a screen in VS2008 and add a button.
In the click  event handler of the button i wrote


build the solution and tried on VC and when i click the button the button disapears but the app remains installed. To uninstall i have to press the close cross in the upper right corner.

Did the same screen using screenmaker and when i hit the button the app is uninstalled!

Check the auto generated code In the event handler  and is  this.closeme().

Can someone give me a hint on what i have to do in VS2008 in order to uninstall the app?

Thanks in advance.