Maybe the form can't lose focus because there is always at least one control on it which gets the focus?
Am 13.03.2012 10:34, schrieb abbat: > > Strange.... > Now it works so: > > Public Sub Form_LostFocus() > Me.Close > End > > BUT !!!!!!!!!!!!! > If my form has NO controls. > > If I add one button to my form then Form_LostFocus() stops to work. > > :confused: > > > abbat wrote: >> >> Public Sub Fmain_LostFocus() >> Me.Close >> End >> >> Does not work. >> Or examle is wrong? >> >> ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user