Difference between Resize and SizeChanged events

后端 未结 3 1295
北荒
北荒 2021-01-01 09:31

In C# .Net in Winforms, I found two events in almost all components, Resize() and SizeChanged(). Is there any difference between them? If both events are the same then why

3条回答
  •  孤独总比滥情好
    2021-01-01 09:38

    So what IS the difference between the Resize and the SizeChanged events?

    Believe it or not absolutely nothing. One method calls the other. However because the latter is named "Changed" it can be used for data binding - so while I dont have any concrete proof, that's my theory on why both exist.

提交回复
热议问题