Why do we use UserControl?

后端 未结 4 2016
予麋鹿
予麋鹿 2020-12-19 18:53

ı have been serching this for a while but I couldn\'t come up with a conclusion. What is UserControl? For me we can do everything with creating new windows forms instead of

4条回答
  •  遥遥无期
    2020-12-19 19:14

    A user control is basically a grouping of other existing control, intended as a reusable component (i.e. composite control). If you need to place the same group of controls on different windows you'd rather group them in a user control, adding things like data validation for instance, and then reuse this control whenever you need it.

    Here is some more reading.

提交回复
热议问题