I have a Window without a titlebar and I need to subclass it (no problem with that). Now the problem is: to make VB not crash I would have to end my application by clicking the x button. But I don't have the x button. I have created my own form with custom close, min, max etc buttons. Now is there a way of exiting program without having to worry about what method I use to end?