msellery Posted April 14, 2003 Posted April 14, 2003 I have a windows form. I want it to do something when it's minimized. It used to be all you'd have to do is write code in the OnMinimize section. This, along with onclick, onMouseOver, etc, seem to be long gone in .Net. Where have they gone, and how can I get them back? Quote
*Experts* Bucky Posted April 14, 2003 *Experts* Posted April 14, 2003 If you want to override these methods, you need to inherit the Form first, because they are Protected methods. I think, however, that you're referring to the Form's events. In this case, inside the code window in VS.NET there are two dropdown menus at the top of the window. The first lets you choose a control (choose "(Base Class Events)"), and then the other dropdown lets you choose the event. An event handler will be created for you. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
solus Posted April 15, 2003 Posted April 15, 2003 protected override void OnResize(EventArgs e_Resize) { base.OnResize( e_Resize ); do stuff } Quote Can't afford to be neutral on a moving train...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.