C# User Controls
-
Hello, I would like to a create a user control which composed of two basic controls, control1 and control2. I was wondering, if i can program the user control in a way that when I use the control in an another project, I could, IN DESIGN TIME, disapear one of the inner controls. i.e. there would be a proprety of the control that would control the visiblty of the controls (e.g. a pull down that would say control1, control2, both, none). Thanks.
-
Hello, I would like to a create a user control which composed of two basic controls, control1 and control2. I was wondering, if i can program the user control in a way that when I use the control in an another project, I could, IN DESIGN TIME, disapear one of the inner controls. i.e. there would be a proprety of the control that would control the visiblty of the controls (e.g. a pull down that would say control1, control2, both, none). Thanks.
I think you can add a property:ViewType(enum) for it. control1 and control2's visiblity can be based on the property,and you can also re-draw the width and border for it.