George gave you a fancy API method to do this, but it seems that simply setting the Form's ControlBox property to False in Design Mode would be easier.
HTH, Toby ----- Original Message ----- From: "verly yuli" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <AccessDevelopers@yahoogroups.com> Sent: Sunday, June 26, 2005 6:34 PM Subject: [AccessDevelopers] could i disabled button (x) in main form or like MDI form? > i have program with menu > -master > -input > -report > -logout > -quit > i want user use this menu-quit > but user alwayas use button(x) on main form > how to disabled this button? > > thank you for your help > > regards > > verly yuli > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > Please zip all files prior to uploading to Files section. > Yahoo! Groups Links > > > > > > > Please zip all files prior to uploading to Files section. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AccessDevelopers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/