Embedding a winform within a winform (c#)

前端 未结 5 531
我在风中等你
我在风中等你 2020-12-29 08:57

Is it possible to embed a windows form within another windows form?

I have created a windows form in Visual Studio along with all its associated behaviour.

I

5条回答
  •  攒了一身酷
    2020-12-29 09:48

    Not directly. You can create a usercontrol, move all of the code from your form to the usercontrol and use this in both forms. You might need to change some of the code from your form but probably not much.

提交回复
热议问题