I'm new in C#, and I'm trying to use a design I made in a form and put it inside the other one. In Java this is possible with Scene builder. You just press include and choose your FXML file. Is there any way to do that in Visual Studio??
Asked
Active
Viewed 64 times
-2
-
1Are you using winforms? webforms? WPF? Xamarin? Something else? – mjwills May 07 '18 at 13:41
-
https://stackoverflow.com/a/7692113/17034 – Hans Passant May 07 '18 at 13:44
3 Answers
1
You can do this.
The word is User Control. Drag and drop everything to your newly created User Control , then after you made it, you can choose it later from the Tool box in Visual Studio, and also can use Drag and drop your User Control like any other tool to existing forms.
koviroli
- 1,422
- 1
- 15
- 27
-
1For more see [here](https://stackoverflow.com/questions/50203323/cloning-tabs-in-tab-control-on-button-click-in-winforms/50204174#50204174) – TaW May 07 '18 at 14:14
0
Is there any way to do that in Visual Studio??
Yes there is, you can use a UserControl if you are targeting Winform. Similar exists for WPF as well.
Rahul
- 76,197
- 13
- 71
- 125