I'm really new to visual studio and programming in general. I'm using Visual Studio Community 2015 Desktop Version (from what I know). I can't find a Windows Forms Application from the C++ category, while there is one for C#.
Can anyone help, do I need to download another version, a plugin, or anything? Sorry if a stupid question, I just really can't figure it out!
In the WinForms Edition tile, click on the Install button. You can also install all editions by selecting the checkbox against All Editions. Click the View More button to know more about the Edition. Upon clicking the Install button, a page is displayed asking to review the License Agreement.
Windows. Forms. dll is located in the folder C:\WINDOWS\Microsoft.NET\Framework\v2.
There are no C++ Windows Form templates in Visual Studio 2015. As I see it, you have two choices:
Create an empty C++ CLR project and add a Windows Forms to it. This link puts it like this (credit to the onContentStop, the user who posted this):
Inside the CPP file that is created, paste this code, replacing anything in square brackets except [STAThread]
with the appropriate names:
#include "[FORM NAME].h" using namespace System; using namespace System::Windows::Forms; [STAThread]//leave this as is void main(array<String^>^ args) { Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); Application::Run(gcnew [PROJECT NAME]::[FORM NAME]); }
Right click your project in the Solution Explorer and click Properties.
Though this has already been answered, I feel like this might help those who stumble across this in the future. While creating a new project, directly above the text field for naming your project, there is a blue link that reads "Click here to go online and find templates" If you click that link it will direct you to templates that are available for you to download & use. Simply use the hierarchy on the left hand side and navigate to Visual C++ and you should be able to simply click "C++ Windows Forms" and it will create the new project, while also downloading and installing the template for future use. So, next time you go to create a C++ Winform you wont have to search for it again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With