Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have some Forms in my Project. I'd like to add an instance of Form1 to Form2 in Designer. It is possible to implement the IComponent Interface in Form1 but i can't see Form1 in the Toolbox to add it to Form2. Any idea?
Thanks
Posted

It will never be displayed in your tool box. If you would like to add then you can use UserControl it provides almost all function and also will appear in your toolbox.
that would be a good practice.
 
Share this answer
 
v2
In answer to your subject line, yes you can.

In answer to the body of your question, as Ravi has said, not at design time.

If you create a UserControl containing all the controls and logic from Form1:
1) it will be available in the Toolbox
2) you can use it for Form1 and Form2.
 
Share this answer
 
But isn't there a possibility to leave it a Form (Because i need some Form events) and get it in the toolbox as a componenten. Like a timer. I don't need to design it in the designer its just so that i can use it's properties?
 
Share this answer
 
Comments
Toniyo Jackson 16-Dec-10 2:10am    
Don't write your comments here. You have add comment button below all answers. so write your comments below the appropriate answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900