开发者

OnResize vs OnSizeChanged

开发者 https://www.devze.com 2023-01-31 20:11 出处:网络
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 [MV

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

精彩评论

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