I have a user control with a checkbox. I am trying to make it visible in designer view of the parent form, but invisible on runtime.
The following code makes checkbox visible in user control's designer view, and invisible on runtime and parent's designer view:
public ucInspectionParameter()
{
InitializeComponent();
if (this.DesignMode == false) this.cbxVirtual.Visible = false;
}