When to add a Component Class vs User Control?

后端 未结 4 1481
面向向阳花
面向向阳花 2021-02-04 00:00

I have a general idea, and there are some obvious cases, but there are also some gray areas for me - when is it best to use to extend from a component and when is it best to cre

4条回答
  •  抹茶落季
    2021-02-04 00:42

    In general, I would use Component when the control does not have any user interface (or at least not one that is present on the form). If it is a UI control I would create a User Control instead.

提交回复
热议问题