What is the difference between these two events? I can't think of any cas开发者_开发问答e where both wouldn't be called at the same time, and MSDN is less than enlightening.
Answer from Bob Powell [MVP] found on internet (discussion goes further) :
Internally, OnSizeChanged calls OnResize so they are pretty tightly linked.
The OnResize method is responsible for invalidating the control if the ResizeRedraw style is set.
AFAIK, the Resize
-Event is fired if the actual size of the form changes. The SizeChanged
-Event fires if the value of the Size
-Property is updated.
精彩评论