vb.net - Inherit from base UserControl -
i have several user controls
have similar functionality, thinking moving these methods baseusercontrol class
, , make user controls
inherit it.
however, when so, compliler warning:
base class baseusercontrol specified class usercontrol1 cannot different base class system.windows.forms.usercontrol of 1 of other partial types
i know i'm getting warning because when create baseusercontrol
, autogenerated code in designer adds inheritance system.windows.forms.usercontrol
.
so,
1. how can inherit `usercontrol` in `vb.net`? 2.is possible? if not, how avoid code repetition in case?
thanks!
Comments
Post a Comment