Тёмный

C++ GUI: Create Simple WinForms App in 30 Seconds! | Sciber 

Sciber
Подписаться 14 тыс.
Просмотров 60 тыс.
50% 1

I created a project template for creating a Simple WinForms Project in Visual Studio (a fairly easy task to do, but didn't occur to me to start off the series with this) and released it to the Visual Studio Marketplace for you to download and use yourself!
Download it right here: marketplace.vi...
Github Repo: github.com/thi...
Here's how to install and create the project and get started with WinForms in C++!
Please leave any issues and bugs with other versions like VS17 or 19 because I only tested this on 2022.
Download Visual Studio 2022 Community: visualstudio.m...
Leave your ideas in the comments section below!
Facebook: (PAGE) sciber.web.app/fb
(GROUP) / programmingsrilanka
Instagram: sciber.web.app/ig
Telegram Community: t.me/wearesciber
Visit Us : sciber.web.app

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 47   
@wearesciber
@wearesciber Год назад
Hi guys, recently I found a problem related to this project template thanks to your comments, the issue was that when we use this and use project resources, it starts giving exceptions. The workaround is to go all the way up to the namespace in MyForm.h and change $safeprojectname$ to your project name. Do this inside MyForm.cpp as well. Then it works!
@dewmi4403
@dewmi4403 Год назад
it finally worked; I Additionally Installed: .Net framework 4.8 sdk .Net framework 4.8 targeting pack My Project NAME = CppWinFormsApp1 Changes in MyForms.cpp-------> #include "MyForm.h" ------------------------------------------------->>>using namespace CppWinFormsApp1; using namespace System; using namespace System::Windows::Forms; [STAThreadAttribute] void main(array^ args) { Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); ------------------------------------------->>>CppWinFormsApp1::MyForm form; Application::Run(% form); } Changes in MyForms.h-------->>> -------------------->>>namespace CppWinFormsApp1 { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; /// /// Summary for MyForm /// public ref class MyForm : public System::Windows::Forms::Form { public: MyForm(void) ...... Remains Same ...
@hungchip
@hungchip 4 месяца назад
Hello, has this error been fixed now?
@arkan7rb
@arkan7rb 6 месяцев назад
what a beautiful bird singing in the background at 1.53 man ^_^
@user-pc2dg9nv2r
@user-pc2dg9nv2r 10 месяцев назад
Hi, for me has just worked. I had to correct verson VS from 2019 to 2022, that's all. Thank You very much
@aditya_asundi
@aditya_asundi 2 года назад
Ah yes, the sudden urge to make a GUI app at Sherlock Holmes' location
@wearesciber
@wearesciber 2 года назад
The Game is on! 😂😂😂
@aditya_asundi
@aditya_asundi 2 года назад
@@wearesciber 😂
@sourabhsingh7279
@sourabhsingh7279 2 года назад
I installed cppwinform and followed all your instructions but When I am searching in Vishal studio. I couldn't able to find it. "No matches found" appears. So plz help me so that I also can continue my gui. 🙏
@wearesciber
@wearesciber 2 года назад
@@sourabhsingh7279 perhaps you didn't install the workloads needed to make these kind of apps. watch this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HcxlYkU8aY0.html
@fluidmind3629
@fluidmind3629 Месяц назад
thanks, you really help me :)
@md.rubaiyatbinfoyez6155
@md.rubaiyatbinfoyez6155 2 года назад
Excellent
@therealjjjay
@therealjjjay 7 месяцев назад
can you do this is vs code?
@KAZAIK3D
@KAZAIK3D Месяц назад
Create ui with round corners and round min _close button with c++ I will be waiting
@awesomepizza25
@awesomepizza25 2 года назад
When I try to open the Header File I get the error “The designed could not be shown for this file because none of these classes within it can be designed. The designer inspected the following classes in the file: MyForm -- The base class ‘System.Windows.Forms.Form’ could not be loaded. Ensure the assembly has been referenced and that all projects have been built”. Any help is appreciated!
@wearesciber
@wearesciber 2 года назад
try reloading the project by right clicking on the project in solution explorer->unload project and then right click on the project name and click reload. i don't know the issue but this worked for me everytime.
@Albatross7770
@Albatross7770 7 месяцев назад
@@wearesciber getting same issue but unresolved from above method
@Analyst404
@Analyst404 2 года назад
thx
@rasikamanori8324
@rasikamanori8324 2 года назад
Bro c++ වලත් frameworks තියෙනවද?
@wearesciber
@wearesciber 2 года назад
Ofcourse!
@EkuaOwusuwaa-hd1sz
@EkuaOwusuwaa-hd1sz 8 месяцев назад
It don't come
@nikhielsingh748
@nikhielsingh748 2 года назад
Hey , how do you do OOp with GUI , how do I create classes or add header files
@mechinizer6911
@mechinizer6911 2 года назад
I found it quite annoying that every single tutorial video stops before they actually show you how to do anything. It would be nice if they actually shown people how to modify the winforms, but it seems that these people might not actually know how to because they never show it. It would be nice to see exactly how to work with winforms, rather than a hundred videos showing how to install it and create a new project. Most programs are not complete until you actually write some code. which these people seem to forget. Heck, a simple button to pop up a "hello world" would help a lot.
@wearesciber
@wearesciber 2 года назад
@@mechinizer6911 Hi, I do have a lot of videos on this subject. In this video I only showed an easy way to make projects.
@viral_fight
@viral_fight 4 месяца назад
not working
@ajaymendade8351
@ajaymendade8351 2 года назад
My visual studio designer giving error even though following all the steps It tell that move your class code to first class in the file
@wearesciber
@wearesciber 2 года назад
are you using visual studio 2022?
@ajaymendade8351
@ajaymendade8351 2 года назад
@@wearesciber yes i am using 2022 version
@fatmaelnoby7687
@fatmaelnoby7687 2 года назад
me too,did you solve it? i need help
@ajaymendade8351
@ajaymendade8351 2 года назад
@@fatmaelnoby7687 i am sorry for it i wasn't able to solve that
@mowafkmha4505
@mowafkmha4505 Год назад
not working there is something missed
@wearesciber
@wearesciber Год назад
can you mention more details about the problem, perhaps send some screenshots to t.me/wearesciber_chat
@yasserhaky861
@yasserhaky861 2 года назад
its still not working
@wearesciber
@wearesciber 2 года назад
what's the issue, could you give some details.
@krisnarxf
@krisnarxf 2 года назад
how about 2010?
@wearesciber
@wearesciber 2 года назад
Didnt test but 2010 has a tempate built in so no need to install external templates.
@alsyedofficial5027
@alsyedofficial5027 Год назад
i have got 143 installed , will this work with that?
@wearesciber
@wearesciber Год назад
Yes
@alsyedofficial5027
@alsyedofficial5027 Год назад
but its giving me an error @@wearesciber
@alsyedofficial5027
@alsyedofficial5027 Год назад
it says in the dialog box that there were build errors , would you like to continue and run the last successful build , i select yes ,then after that another dialog box with error cant find the path specified @@wearesciber
@wearesciber
@wearesciber Год назад
Tell me the error (The first error - in the bottom vs under error list)
@alsyedofficial5027
@alsyedofficial5027 Год назад
i installed the 142 and netframework now its working thanks @@wearesciber
@Frannn19
@Frannn19 2 года назад
this shit not working
@wearesciber
@wearesciber 2 года назад
whats the issue
@snehashrivastav5544
@snehashrivastav5544 Год назад
Not working
@wearesciber
@wearesciber Год назад
hi can you describe your issue in detail?