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