Can you turn a one-form app into a custom control?

  • Thread starter Thread starter trebor
  • Start date Start date
T

trebor

Starting with a finished one-form application (a special-function
calculator), how can you turn it into a custom control without making
any code changes (assume you need no underlying interface because the
calculator is only visual)?

I'm sure I saw it done, and I think the trainer either added a reference
or just added the calculator's code as an existing item or something
like that. It was pretty quick and my notes aren't too good! :(

Thanks for any help.
 
You could try changing the intheritance of your Form from
System.Windows.Forms.Form to System.Windows.Form.UserControl. That might
work...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top