[RESOLVED] Me.SizeChanged and Me.Resize? What's the difference?
Hi all.
What's the difference between the SizeChanged event and the Resize event?
Re: Me.SizeChanged and Me.Resize? What's the difference?
The only difference that I am aware of and I could be wrong is that Resize will be called whenever SizeChanged is called but not vice versa... otherwise it is the same... But like I mentioned I could be wrong...
Re: Me.SizeChanged and Me.Resize? What's the difference?
Cooi,
I searched MSDN for the control events for Resized and SizeChanged and found that there is a slight difference in these two events. The resized event is fired when the control is resized. The SizeChanged is fired when any of the Size properties are changed.
So, IF i am reading the MSDN library correctly (and someone please correct me if I am wrong), when the end user changes the size of a control, the resize event would fire and then the SizeChanged event would fire. If the size of a control is changed programmatically the SizeChanged event would fire and then the resize would fire.
I had never really thought about the order of these events and never had any issue to use them, so I hope I am reading the information correctly ... anyone else???
Thanks
Robert
Re: Me.SizeChanged and Me.Resize? What's the difference?
If they fire at the same time (I mean same event), why are there 2 events then that do the same things?
Re: Me.SizeChanged and Me.Resize? What's the difference?
The Resize event was added first and then the SizeChanged event was added to match the standard SomePropertyChanged pattern for data-binding purposes. The Resize event was presumably already been used in code so was not removed. There is effectively no difference.