![](/img/trans.png)
[英]Visual Studio Toolbox Not Including User Controls from Another Project from Same Solution
[英]Visual Studio - Copy User Controls to New project
當我制作新項目並嘗試添加現有項目( User Control )時,它不起作用。 它將用戶控件分為3個文件( cs
, Designer.cs
和resx
)而不是一個。
有機會將現有用戶表單添加到項目中,而無需創建庫或任何東西。
嘗試僅將[UserControl] .cs添加到項目中。 VS應該檢測到相關文件([UserControl] .Designer.cs,[UserControl] .resx)並將其自動添加到[UserControl] .cs中。
Ctrl + Shift + Alt並選擇User.cs
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.