开发者

OnResize vs OnSizeChanged

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜