Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm having trouble getting off the ground on this, I hope someone can help. I'm trying to develop a new user control inherited from a Windows standard control.

 

I create a new project, then add Inherited Control > Add User Control, and set the inherited statement in the new class that's generated to:

 

private class MyUC : System.Windows.Forms.Buttons;

 

This is all written up in the on-line help, and I've downloaded several examples that work the same way.

 

If My understanding is right, at this point my new control should behave exactly like a standard Button until I start changing things.

 

My problem is, I can't figure out how to access the new control. It doesn't show up in the tool box or the CustomControls tab. I have a test form ready to go to test my control, but I can't figure out how to get a copy of my control on to the test form.

 

What am I missing? Can someone help me out?

Thanks.

  • Administrators
Posted

If you want to get the control to appear on the toolbox the easiest way is create a new project (or add a new project to the solution) and select windows control library.

Delete the control that's part of the project and move your control to the new project and build the solution.

If you right click on the tool box and select add/remove items (i think) and then browse for the dll that was created from the new project. Select it and your control should now appear on the toolbox.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

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...