Windows Forms Application in Visual C++ 2012
Microsoft has removed the option to create a C++/CLI Windows Forms application by default, the template files are still installed. The only thing missing seems to be the .vsz files and a registration in the vcNET.vcdir file.
Just follow these steps to have Windows Forms Application in Visual Studio C++ 2012
Step One
Download the following files.
[wpfilebase tag=file id=1 tpl=download-button /]Now extract the compressed file.
Step Two
Now fire up windows explorer and go to "C:Program Files (x86)Microsoft Visual Studio 11.0VCvcprojectsvcNET"
or‚ "[Visual Studio Installation Directory] VCvcprojectsvcNET"
Step Three
Create a new directory and now backup all the files.
Step Four
Now copy all the extracted files from "Step One" and paste inside this folder "C:Program Files (x86)Microsoft Visual Studio 11.0VCvcprojectsvcNET" or‚ "[Visual Studio Installation Directory] VCvcprojectsvcNET"
Step Five
Run Visual Studio and select New Project > Visual C++ > CLR
Now you should be able to see Windows Forms Application
Step Six (optional)
Create a new Windows Forms in Visual C++ and see if everything is working or not.
33 Comments
hostgator plans · November 3, 2012 at 8:00 pm
Hello there! Do you use Twitter? I’d like to follow you if that would be okay. I’m
definitely enjoying your blog and look forward to new updates.
abouthack · November 11, 2012 at 10:51 am
My facebook and twitter social links are posted on top. Thank you for your comment.
B · November 7, 2012 at 4:16 pm
Great, thanks. For all you VS express users:
use this directory: C:Program Files (x86)Microsoft Visual Studio 11.0VCvcprojects_WDExpressvcNET
and you also need to copy the WinForm directory from another version to C:Program Files (x86)Microsoft Visual Studio 11.0VCVCWizardsAppWiz.NET
Kostia · October 6, 2013 at 5:19 pm
Thank You Bro, this realy helped me!)
Numan · November 17, 2012 at 4:21 pm
thanx for this nice help.
JR · November 24, 2012 at 3:55 pm
Thank you for this. Microsoft’s treatment of C++ coders in the last two releases has been baffling. No Intellisense in the last release, no new forms in 2012.
abouthack · November 24, 2012 at 5:38 pm
You are most welcome.
Ahmed · December 26, 2012 at 8:50 pm
I agree, its like they are trying to have a poor business strategy. My solution to the problem is visual studio 6 and 2010. I think 2010 was the beginning of their collapse.
gammimg · December 16, 2012 at 11:16 am
Great web site you have here.. It’s difficult to find good quality writing like yours these days. I seriously appreciate people like you! Take care!!
Christian · December 22, 2012 at 4:00 pm
Danke für die Hilfe
bbkaran · January 1, 2013 at 12:06 am
when i copy these files, they get locked. Unlock IT software can’t see these files.
any help?
daniel · January 12, 2013 at 4:35 pm
I’ve got some problem here… when i tryed to create the project i saw the new options,but i just could not select them.Any ideias of how to solve it?
Gregor · January 18, 2013 at 5:13 pm
@Daniel
This behaivor looks like, you tryed this workaround in VS Express.
In the Express version are no winform templates. You have to copy them from an older VS Express version (2010 or 2008) into the 2012 directory.
See the comment by B:
and you also need to copy the WinForm directory from another version to C:Program Files (x86)Microsoft Visual Studio 11.0VCVCWizardsAppWiz.NET
Lorenz · January 29, 2013 at 2:55 pm
Hello,
thanks for this great instruction. I have one additional question. Do you have an really easy way to create a windows form app that runs on another computer, or an easy way to create an installer for that?
Thanks
asheykh · February 3, 2013 at 5:52 am
Thank you so much
excellent , Great work.
John Arden · February 9, 2013 at 3:28 pm
Hi, the zip file you uploaded contains only six files, but in your screenshots, it shows 11 files. Is it okay? thanks!
Constantine · March 9, 2013 at 7:38 pm
Thank you very much! It’s all works.
deadeddie · March 9, 2013 at 9:57 pm
Thanks. Saved a lot of time. Works great
Muhammad · March 10, 2013 at 6:13 pm
THANKS!!!
Doimão · March 31, 2013 at 8:37 pm
Very good friend! Thank you.
Abhilash · April 21, 2013 at 10:12 am
will this work for visual basic in visual studio 2012
Luciano · May 26, 2013 at 1:12 am
Wow, wow, woW 😀
You saved my life man.
All the Best!
Merfy · May 28, 2013 at 2:13 pm
Perfect! Thanks you very much!
Jasen · June 19, 2013 at 9:19 pm
Thanks! Creating a blank CLR project and adding the winform afterwards with all the linking and what not is a bit of a pain in the ass.
ce · June 26, 2013 at 3:30 pm
muito obrigado pelo seu tutorial
Carson Evans · July 13, 2013 at 1:28 pm
Hello I am having a problem. Everything worked up until I go and make the Windows Forms project. I enter my project name and click create, then the window disappears like it should but instead of creating the project it sends me back to project creation a second later.
Anonymous · August 4, 2013 at 1:35 am
Whats up! I simply wish to give an enormous thumbs up for the great info you
Ricardo · August 15, 2013 at 1:44 am
Thanks!! You saved my life
Blackvz · August 23, 2013 at 3:25 am
Really usefull ! Finally thanks bro !!!
Papoff · September 20, 2013 at 5:18 am
Hi
About “and you also need to copy the WinForm directory from another version to C:Program Files (x86)Microsoft Visual Studio 11.0VCVCWizardsAppWiz.NET”
I simply don’t have another version of MVS.
Can somebody send me this WinForm directory?
skulex · October 2, 2013 at 1:42 pm
Thanks. You saved my genitals, because I was planning to sever them and feed them to the crows perched and waiting in the mulberry tree visible from my office window.
yurtyurty · April 14, 2015 at 8:07 am
Link is broken. please fix it 🙁
arifur · April 15, 2015 at 7:26 am
Thank you for reporting it. The link has been fixed.