Skip to content

Repository files navigation

C++/CLR Windows Forms Project Template

A simple Visual Studio project template for creating Windows Forms applications using C++/CLR.

For installation instructions, documentation, screenshots, and usage details, visit the Visual Studio Marketplace.

If you encounter any bugs or issues, feel free to report them or leave feedback on the Marketplace page.

C++/CLR Windows Forms Project Template

A simple Visual Studio project template for building Windows Forms applications using C++/CLR.

This template provides a project structure similar to the standard C# Windows Forms Application template available in Visual Studio.

Note: If any images below appear blurry, open them in a new tab to view them at full resolution.

Compatibility: The template has been tested with Visual Studio 2022. If you encounter issues with Visual Studio 2017 or 2019, please report them.

Video Guide

Watch the installation and setup guide

You can also learn more about Windows Forms and C++ GUI development.

Why This Template?

Older versions of Visual Studio provided easier support for creating Windows Forms projects with C++/CLR. In newer Visual Studio versions, there is no equivalent project template available by default.

This extension provides a simple starting point for creating GUI applications using C++/CLR, Windows Forms, and the .NET Framework.

Installation

Download and run the extension installer.

Once installed:

  1. Open Visual Studio.
  2. Select Create a new project.
  3. Search for CppWinForms.
  4. Select the project template and create your project.
Create Project

Platform Toolset Error

If you receive a build tools or platform toolset error:

image

Open the project properties and select the Visual Studio version installed on your system under:

Configuration Properties → General → Platform Toolset

image

Apply the changes and rebuild the project.

Opening the Windows Forms Designer

The default form can be found in:

Header Files → MyForm.h

Open MyForm.h to use the Visual Studio Windows Forms Designer.

If the Designer initially displays an error:

image

Close MyForm.h, wait a few seconds for Visual Studio to finish loading the project, and open the file again.

Feedback and Issues

If you find a bug or have a suggestion for improving the template, feel free to report it through the project or contact through GitHub.

About

A Simple Windows Forms Application Project Template in C++/CLR.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages