Click here to Skip to main content
15,905,504 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Is it possible to move a control to another (empty) form? This way i can just hide the first form.

I can't just hide all the controls on form1, because the control i want to focus on is inside a tab control.

Any suggestions?


Let me explain some more:

I have a custom picturebox like controls which is streaming a webcam feed.
But i want to be able to "maximize" the stream, so hide all other controls and resize the control to the form size.
Posted
Updated 8-Jan-12 2:24am
v2

1 solution

Didn't quite get what you were after but if you need to move controls in your program to another tab or form, I'd say there's something wrong with the UI design. Typically you should add necessary controls and let for example TabControl to take care of the hiding when tabs' are changed. Same applies to forms, you add necessary controls and instead of moving the control from one form to another you move the data from control1 to control2.
 
Share this answer
 
Comments
Shahin Khorshidnia 8-Jan-12 7:59am    
Yes, He can move data instead of a control. use binding.
Wendelius 8-Jan-12 8:14am    
Thanks for the comment :)

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