Inheriting User Controls
-
Greetings, When I inherit from a user control I would like to rearange the controls of the base control on the new control. E.g. I have to list boxes side by side on the base control. I would like to change that to one list box above the other on the inherited control. The code for these controls are the same and I would like to get reuse out of this if possible. Thank you, Brett
-
Greetings, When I inherit from a user control I would like to rearange the controls of the base control on the new control. E.g. I have to list boxes side by side on the base control. I would like to change that to one list box above the other on the inherited control. The code for these controls are the same and I would like to get reuse out of this if possible. Thank you, Brett
Make the list boxes in the base control as public and do then rearranging.
-
Make the list boxes in the base control as public and do then rearranging.
True enough, how simple. Protected is probably a much safer bet though.
-
Make the list boxes in the base control as public and do then rearranging.
sssyed_in wrote: Make the list boxes in the base control as public and do then rearranging. I think
protected
would be more appropriate. Charlie if(!curlies){ return; }