Click here to Skip to main content
16,020,343 members
Articles / Programming Languages / Visual Basic

Disable the Close box on a form

Rate me:
Please Sign up or sign in to vote.
3.56/5 (6 votes)
1 Feb 2010CPOL 7.3K   1  
I could be missing the point here, but I believe you could also override the OnClosing event.protected override void OnClosing(CancelEventArgs e){ // allow default behavior.. base.OnClosing(e); // test for whatever... // on fail, e.Cancel = true; // set some...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions