PC Review


Reply
Thread Tools Rate Thread

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

 
 
trebor@sirius.com.no.more
Guest
Posts: n/a
 
      9th Dec 2003
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.

 
Reply With Quote
 
 
 
 
Jan Tielens
Guest
Posts: n/a
 
      9th Dec 2003
You could try changing the intheritance of your Form from
System.Windows.Forms.Form to System.Windows.Form.UserControl. That might
work...

--
Greetz,
Jan
__________________________________
Read my weblog: http://weblogs.asp.net/jan
"(E-Mail Removed)" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> 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.
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: After creating custom container control, control cannot be added to form Michael Nemtsev [MVP] Microsoft C# .NET 1 14th Nov 2007 01:48 PM
How do you access a control property of a main form from a custom user control? forest demon Microsoft C# .NET 6 23rd Aug 2007 12:36 AM
Turn off Signatures in Custom Form =?Utf-8?B?V2VzbGV5?= Microsoft Outlook Form Programming 3 21st Oct 2005 11:43 PM
Turn Word E-Mail Editor Off for Specific Custom Form Tyler Microsoft Outlook Form Programming 0 19th Jan 2004 09:22 PM
Can't Reference A Custom Control On a Custom Form David M. Microsoft Outlook 0 16th Oct 2003 08:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:01 PM.