How should the Form.Load event be used compared to its constructor method?

前端 未结 3 640
难免孤独
难免孤独 2020-12-16 03:20

When initializing properties of controls or other values related to a Form I have a tendency to switch back and forth between initializing the values in the Form\'s construc

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 04:25

    I always use the constructor and almost never the form.Load event unless I can't get away without. The reason is because the constructor can receive parameters when the Load event can't really.

    It is so much more useful

提交回复
热议问题