开发者

How can I add a Window to my Visual Studio?

I created an Add-in project and now I have this in my solution explorer:

How can I add a Window to my Visual Studio?

Do I just add right click the solution and add a Windows form? I'm not sure how this works and the tutorials I find don't touch on开发者_运维百科 this.

Thanks.


You can right click the project file under the solution file and select add new item. Btw it looks like you have a missing reference for "Microsoft.CSharp though; that will need to be resolved or removed from your project.

Here is how you instantiate a form and show it in the most basic sense.

Form f = new Form();
f.Show();

Hope this helps.

Enjoy!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜