Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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?
  • *Experts*
Posted

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.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Posted
	protected override void OnResize(EventArgs e_Resize)
	{
		base.OnResize( e_Resize );
		
		do stuff
	}

Can't afford to be neutral on a moving train...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...