Windows Forms Application in Visual C++ 2012

Published by arifur on

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.

Visual C++ 2012 does not have any windows forms application by default

Just follow these steps to have Windows Forms Application in Visual Studio C++ 2012

Step One

Download the following files.

VS 2012 CPP Win Forms (2.9 KiB, 1882 downloads)

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.

Backup all the old files

Backup all the old 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

Copy all the extracted files

Copy all the extracted files

paste-all-the-copied-files

Paste all the copied files inside the specified location inside VC++ installation dir

Step Five

Run Visual Studio and select New Project > Visual C++ > CLR

Now you should be able to see Windows Forms Application

visual-cpp-2012-forms-application-is-now-present

Forms Application inside Visual C++ 2012

Step Six (optional)

Create a new Windows Forms in Visual C++ and see if everything is working or not.

 

New Visual C++ 2012 Form Application Created

New Visual C++ 2012 Form Application Created

Visual C++ Form Application Running in Debug Mode

Visual C++ Form Application Running in Debug Mode


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.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.