question

Andrew-7453 avatar image
0 Votes"
Andrew-7453 asked ·

looking for book on programming visual c++ with Win Forms

Look for a book for a visual c++ for VS 2019 book that uses Win Forms. Not many tutorials on YT.

thanks

c++windows-forms
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Daniel

Unfortunately the book is in German. Wish it was also in English. YT has a nice tutorial on adding a Win Form to VS 2019 not much more

thank you

0 Votes 0 ·

Hi @Andrew-7453,
WinForms designer support for C++/CLI was dropped a long time ago in VS 2012. Microsoft suggests using C# for your WinForms code, and only use C++/CLI if you need to interop with native code.
So it is recommend that you do not create Windows Forms applications in C++/CLI.
If you just create a simple c++ winform, please refer to the threads already provided above.
Best Regards,
Daniel Zhang

0 Votes 0 ·

1 Answer

DanielZhang-MSFT avatar image
0 Votes"
DanielZhang-MSFT answered ·

Hi Andrew-7453,
Microsoft removed the WinForms C++/CLI template starting. The official explanation is that they want to encourage managed desktop UI development in C# or VB and relegate C++/CLI to serve as glue between native back end code and managed UI code.
And you can also create a normal C++/CLI project, then adding a form to that project.
Here are some detailed steps in these threads you can refer to.
Visual Studio 2017 - can't find Visual C++ Windows Forms
Can't find Windows Forms Application for C++
This link introduces a book about teaching C++ from scratch using C++ Windows Forms.
Best Regards,
Daniel Zhang


If the response is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.