Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I want to use controls derived from standard controls (e.g. RadioButton, ChackBox) as User Controls in order to show them in the forms designer.

When I add a new user control and change it's inheritance to e.g. RadioButton the Radiobutton will appear during runtime but not in the designer.

The designer only shows an empty user control.

Is there a way to show an inherited control in the designer?

Debug me...
  • *Gurus*
Posted
Not automatically. The best way is to create your control, build your project, put a normal radio button on your form and then edit the designer-generated code so it declares and instantiates your own type. Switching back to the design view will then show your control.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...