By convention you should add an OnResizing
event, which fires just when it is about to change but hasn't changed, and then you fire the OnResize
after it has been resized. You would get the old value from your EventArg
in the OnResizing
event.
Edit:
Are you creating your own event or firing one of an included control?
If you are doing your own event, you can derive from EventArg
and make something like ResizeEventArg
that include the size of the thing you want.
I would use the ResizeEventArg
for both the Resize
and OnResizing
events, and still follow what I said earlier.
Or if you know which type of control it is, you could cast the Object sender
into the type and then read the property.