Tuesday , 23 December 2014
Home » Programming » C ++ » Windows Forms Application in Visual C++ 2012

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.

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.zip

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

31 comments

  1. 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.

  2. 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

  3. thanx for this nice help.

  4. 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.

  5. 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!!

  6. Danke für die Hilfe

  7. when i copy these files, they get locked. Unlock IT software can’t see these files.
    any help?

  8. 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?

  9. @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

  10. 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

  11. Thank you so much
    excellent , Great work.

  12. Hi, the zip file you uploaded contains only six files, but in your screenshots, it shows 11 files. Is it okay? thanks!

  13. Thank you very much! It’s all works.

  14. Thanks. Saved a lot of time. Works great

  15. THANKS!!!

  16. Very good friend! Thank you.

  17. will this work for visual basic in visual studio 2012

  18. Wow, wow, woW :D
    You saved my life man.
    All the Best!

  19. Perfect! Thanks you very much!

  20. 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.

  21. muito obrigado pelo seu tutorial

  22. 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.

  23. Whats up! I simply wish to give an enormous thumbs up for the great info you

  24. Thanks!! You saved my life

  25. Really usefull ! Finally thanks bro !!!

  26. 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?

  27. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">