Create Login and Register Forms Using C++ and Visual Studio 2022 with SQL Server

How to create Windows Forms using C++ and Visual Studio 2022. How to create login and register forms (winforms) using C++ and SQL Server. How to create database using Microsoft SQL Server and Visual Studio.
************************
Source code on Patreon : / create-login-and-87665393
Free Document Proofreading
Grammarly: grammarly.go2cloud.org/SH3YB
**********************
Video Content
(00:00) Create CLR Empty C++ Project
(02:02) Create Database Data
(06:00) Create Login Form
(15:29) Create Program.cpp File
(17:40) Create Dashboard Form
(22:01) Create Register Form
(34:57) Update Login Form
(37:02) Update Program.cpp File .
***********************************
🔥 Complete Udemy Courses :
Build E-commerce Web Application using ASP.NET Core : www.udemy.com/course/aspnet-c...
Build E-commerce Web API using ASP.NET Core : www.udemy.com/course/build-as...
Build E-commerce Web Application using React JS : www.udemy.com/course/build-co...
⬇️ Free Document Proofreading ⬇️
► Grammarly : grammarly.go2cloud.org/SH3YB

Пікірлер: 112

  • @davidegallo3879
    @davidegallo38797 ай бұрын

    Thank you so much. This tutorial was amazing, I was searching for this type of videos for weeks. Thank you so much. Everything was crystal clear, you explained it in a very simple way... and again, thank you so much. I hope I can found more useful videos like this in your channel. Keep on coding my friend.

  • @user-tc2ir8gr4d
    @user-tc2ir8gr4d Жыл бұрын

    The best ever guide I could have ever seen on the internet, step by step with explanation, no useless shit. 9999/10. Will defo recommend this.

  • @Iamfoxbrown
    @Iamfoxbrown2 жыл бұрын

    I had a problem with authentication but now its working 100%. Thk You. I´m waiting for more lessons about C++ Windows Form

  • @coollobsterr
    @coollobsterr2 жыл бұрын

    very clean! thank you for this. hope you do more on C++ and QT6.

  • @Sin1tsyn
    @Sin1tsyn2 жыл бұрын

    Nice to meet this channel on youtube. Thank you a lot!!!

  • @elizaveta_kush
    @elizaveta_kush3 ай бұрын

    Thank you for this amazing video! I hope this will help me start a course project.)

  • @AC-mw3tz
    @AC-mw3tz2 жыл бұрын

    Many thanks for the tutorial. It helped me a lot. :)

  • @karendavila4028
    @karendavila40283 ай бұрын

    Thank you so much for the tutorial. I would like to know if there is a way to see the message boxes (with errors) in the event viewer.

  • @SpringKerl
    @SpringKerl2 жыл бұрын

    Hello thanks for the great video! I´m a beginner in the coding world. does this operator "^" have the same purpose as "&"??

  • @thanhat3153
    @thanhat31532 жыл бұрын

    perfect video. Thank you so much. Hope you have more video about C++ and visual studio product

  • @fivesauceftbananas8319
    @fivesauceftbananas83192 жыл бұрын

    tysm for this, and im really sorry, but how can i see all the user registered in the winforms, u know, like a gui

  • @pHaace
    @pHaace Жыл бұрын

    Completed this tutorial but not sure where to find videos to deepen the understanding and adding other stuff to the dashboard just yet, as a beginner learning C++ from JS

  • @Bolbol2024
    @Bolbol20245 ай бұрын

    Thank you, this is a useful tutorial

  • @Valentine63rt
    @Valentine63rt Жыл бұрын

    Hello, I'm using this as a reference for a school proj. I've added an admin form and I want to run it if I login using the admin email/pass but don't know how. Any advice on how I should go about it? Thanks.

  • @muhammadmujahidjabbi9420
    @muhammadmujahidjabbi9420 Жыл бұрын

    Hello, wonderful tutorial! Magnificent I must say. But I have a problem with adding/registering new user. Every aspect working fine. Excepting adding a new user in the register form, I'm also Using SQL Access. Could you please help, I'll appreciate, Thanks.

  • @YulyaK-sy4cq
    @YulyaK-sy4cq Жыл бұрын

    Do you think you could post a video on how to use SQL Server, C++, DataGridView, essentially, CRUD. If you don't mind and it'd be very appreciated!

  • @myth6628
    @myth6628 Жыл бұрын

    Do we need to create a database in Azure to run this program? Because when I enter the e-mail and password correctly, the program closes.

  • @sbsyr5555
    @sbsyr55552 жыл бұрын

    Excellent video.Thank you very much..

  • @zedricedwardhernandez2161
    @zedricedwardhernandez2161 Жыл бұрын

    do I need to have sql installed first for it to not fail connection to the sql?

  • @byt3shift
    @byt3shift2 жыл бұрын

    can you explain how to let the register form check if the username already exists?

  • @ombonyohendrix
    @ombonyohendrix2 жыл бұрын

    Nice tutorial kindly make another one of a grading system

  • @simp5290
    @simp5290 Жыл бұрын

    why i still have error when creating UI form after i restart visual studio?how can I fix it?

  • @subhranildey3202
    @subhranildey3202 Жыл бұрын

    What if my query returns more than I tuple as result, how do I print them out?

  • @K1LL3RH1GT3CH
    @K1LL3RH1GT3CH Жыл бұрын

    Nice tutorial, thanks

  • @mundus7087
    @mundus70875 ай бұрын

    I have problem after logging in, when I log on application is closing and it doesn't go to dashboard. HELP!!!

  • @user-gq6jb5kf3m
    @user-gq6jb5kf3m7 ай бұрын

    what's that instance name that you put after local host?

  • @user-yt5hw1sn8p
    @user-yt5hw1sn8p4 ай бұрын

    why i still have error LNK1561 entry point must be defined ? how can I fix it?

  • @Luix
    @Luix Жыл бұрын

    MyForm.cpp is epmty, is this ok? using visual studio community 2022

  • @evcheats
    @evcheats2 жыл бұрын

    Hello, how do I MAKE a sql server? (Like a private one)

  • @aibprince5298
    @aibprince5298 Жыл бұрын

    sir i get (sqlConnection )undefined error. i included a header (using namespace System::Data::SqlClient;)

  • @adriana7907
    @adriana7907 Жыл бұрын

    Can we do it using sqlite_orm? To somehow change the database .

  • @Spookyatoms
    @Spookyatoms2 жыл бұрын

    I'm having trouble getting MySQL to connect to visual studio 2022, I've read that for some reason this is a common issue, Does this tutorial function with visual studio 2019? (It still connects to my database just fine), or do you have any tips for fixing connection errors with MySQL in VS 2022?

  • @sabadvali9322

    @sabadvali9322

    Жыл бұрын

    i have same problem too

  • @junioradi6554
    @junioradi65542 жыл бұрын

    Very clear and useful tutorial. You make me like Visual Studio which seems to be very simple compared to Qt. Hope you refactor the code with SOLID paradigm and best OOP concepts. Thank you very much !!!

  • @BoostMyTool

    @BoostMyTool

    2 жыл бұрын

    "refactor the code with SOLID paradigm and best OOP concepts" : probably you talk about switching between register and login forms. Unfortunately, I did not find another way. C++ and dotnet allow you to create only one window, but allow you to create multiple dialogs. If you close the main windows, the application will be stopped. That's why I used dialogs to show the login/register forms. If you have a better idea, please let me know and I will refactor the code

  • @parvejkhan6757

    @parvejkhan6757

    Жыл бұрын

    @@BoostMyTool can you help me actually server explorer is missing

  • @s.a.s3961
    @s.a.s39612 жыл бұрын

    Idk what i should write in server name ,plz help me

  • @SaifullahLOPS
    @SaifullahLOPS10 ай бұрын

    The Command is undefined in edithing the login form please help me

  • @Revansid7
    @Revansid7 Жыл бұрын

    Sir, how to use libusb to c++ on visual studio?

  • @bonelakanakaratnam6107
    @bonelakanakaratnam6107Ай бұрын

    When I click ok it's showing failed to connect to database. Can I get some help on this issue

  • @sabasajaia7616
    @sabasajaia76166 ай бұрын

    how to see what server is installed on my pc?

  • @rino19ny
    @rino19ny Жыл бұрын

    you lost us at 11:34 what did you typed there?

  • @BryanChance
    @BryanChance Жыл бұрын

    What's the ^ and % symbols?

  • @cliffordbodden8992
    @cliffordbodden89922 жыл бұрын

    How about the same video, but this time instead of using SQL use ACCESS

  • @skykid1075
    @skykid10755 ай бұрын

    How to add search button please ?

  • @luyanda_siphiwe_mdletshe
    @luyanda_siphiwe_mdletshe2 ай бұрын

    i have the problem , even if i enter the correct email and password, still get ERROR

  • @aarti263
    @aarti2632 жыл бұрын

    Thank you sir 🙏

  • @kristianacearasula8673
    @kristianacearasula8673 Жыл бұрын

    Help my Green User at 15:34 is red wont turn green help how

  • @demetrischristodoulou8487
    @demetrischristodoulou84872 жыл бұрын

    Very good tutorial! Can you also make one for mobile devices? Thank you.

  • @BoostMyTool

    @BoostMyTool

    2 жыл бұрын

    I will try when I find some free time

  • @fahedbatch5627
    @fahedbatch5627 Жыл бұрын

    Thank you 🥰

  • @hernandodonismael2862
    @hernandodonismael28622 жыл бұрын

    MY SERVER NAME WAS ERROR HOW TO KNOW WHAT IS MY SERVER NAME?

  • @user-jm9dc2wm2q
    @user-jm9dc2wm2q Жыл бұрын

    i cant find the server explorer

  • @mariafernandez1338
    @mariafernandez1338 Жыл бұрын

    Do you have a video on how to download the SQL server? I keep getting an error when I try to download it and haven't been able to fix it ):

  • @parvejkhan6757

    @parvejkhan6757

    Жыл бұрын

    Hi can you tell me how to get server explorer

  • @Greyghost1
    @Greyghost12 жыл бұрын

    Hey is there a way to show how to create the login and register using mysql rather than sql or would it be the same process just switch the microsoft with mysql, trying to create remote logins

  • @BoostMyTool

    @BoostMyTool

    2 жыл бұрын

    it is the same process just replace microsoft with mysql

  • @Greyghost1

    @Greyghost1

    2 жыл бұрын

    @@BoostMyTool And does this work on applications like lets say I moved to another pc and had the exe. would this still be able to connect to the same database

  • @Lounis_Sad
    @Lounis_Sad2 жыл бұрын

    good work

  • @ronaldososajr.222
    @ronaldososajr.222 Жыл бұрын

    Hey, my form is running... But the problem is, when I press the login button it shows the "Failed to connect to Database"... What should I do????

  • @singharsh0381

    @singharsh0381

    Жыл бұрын

    Same problem

  • @tragianghathi8073
    @tragianghathi807311 ай бұрын

    thanks so much

  • @user-tp7mm7mp7u
    @user-tp7mm7mp7u5 ай бұрын

    Failed to connect to database

  • @jommjustonemoreminute6977
    @jommjustonemoreminute6977 Жыл бұрын

    Good tutorial but I would point out you often paste pre-written code in but don't give us a full view of the whole snippet. If you are going to shortcut like that, at least pan across the whole text so we can pause the video and copy what you have pasted.

  • @myth6628

    @myth6628

    Жыл бұрын

    hi, when i entered the email and password corretly, the program closes. Do you have any idea?

  • @fivesauceftbananas8319
    @fivesauceftbananas83192 жыл бұрын

    ty so much, how can i desactive an user?

  • @BoostMyTool

    @BoostMyTool

    2 жыл бұрын

    add a new column in your database table. You can call it active and you can give it values 1 or 0. then accept users if they have active=1

  • @fivesauceftbananas8319

    @fivesauceftbananas8319

    2 жыл бұрын

    @@BoostMyTool tysm

  • @ichbindede5300
    @ichbindede5300 Жыл бұрын

    how to add logout

  • @EnglishwithBaskar
    @EnglishwithBaskar2 жыл бұрын

    Hi, Can we connect mysql Visual Studio version to Visual studio 2022 while programming with python

  • @BoostMyTool

    @BoostMyTool

    2 жыл бұрын

    It is possible to connect visual studio to mysql (you can see the following links), but I don't know if it is possible to use visual studio with python or not: kzread.info/dash/bejne/k5OLltytZda4YbA.html kzread.info/dash/bejne/f3aXmLqmltbNpcY.html

  • @EnglishwithBaskar

    @EnglishwithBaskar

    2 жыл бұрын

    @@BoostMyTool Okay thank you so much for your response...

  • @EzarGmng19
    @EzarGmng19Ай бұрын

    i have some problems with navigating my Database.. i followed your video .. but somehow when i'm putting the correct email and password .. catch condition prompt .

  • @jameskekeli2093

    @jameskekeli2093

    8 күн бұрын

    anyway on how to use fstream on cpp gui ???

  • @chanseyha3749
    @chanseyha374910 ай бұрын

    How to download library for free?

  • @firstgear11382
    @firstgear113822 жыл бұрын

    Tounsi ?

  • @PakistanYouth185
    @PakistanYouth1852 жыл бұрын

    SIR ,I WAS TRYING TO CONNECT BY TEST CONNECTION BUT IT WAS SHOWING ERROR PREVIOUSLY I WROTE "localhost\servername" AND THEN I FOUND SERVER NAME AFTER OPENING THE SQL SERVER AND THEN I WROTE "DESKTOP-0N05N9S"I.E ONLY SERVER NAME AND IT WAS SUCCESSFUL.

  • @rahmanquadri7128

    @rahmanquadri7128

    2 жыл бұрын

    i think i am getting the same error, it says failed to connect to database

  • @Iamfoxbrown

    @Iamfoxbrown

    2 жыл бұрын

    In reality "localhost" is the name of your computer: DESKTOP-0N05N9S. I had the same problem but I´d solved following the same parameters that you had declared.

  • @aryeshsrivastava3728

    @aryeshsrivastava3728

    2 жыл бұрын

    @@rahmanquadri7128 Were you able to solve that ?? I am facing the error right now .

  • @marianecarandang8116
    @marianecarandang8116 Жыл бұрын

    how to fix when it says 'failed to connect to database' when i tried to login and register?

  • @ecruz99

    @ecruz99

    Жыл бұрын

    type localhost

  • @rixanthehope9051

    @rixanthehope9051

    Жыл бұрын

    @@ecruz99 type localhost where?

  • @doglover82
    @doglover822 жыл бұрын

    Can I run on my physical device

  • @BoostMyTool

    @BoostMyTool

    2 жыл бұрын

    I did not try, but it should be possible

  • @fragmentsoflife7664
    @fragmentsoflife7664 Жыл бұрын

    how to fix "Failed to connect to database",please help

  • @Nathan-yj4ks

    @Nathan-yj4ks

    Жыл бұрын

    did you find ?

  • @doglover82
    @doglover822 жыл бұрын

    Can I make apps with visual studio 2022

  • @junioradi6554

    @junioradi6554

    2 жыл бұрын

    lol

  • @hughjanus5342
    @hughjanus53422 жыл бұрын

    I dont why but I cant register a new user...

  • @aryeshsrivastava3728

    @aryeshsrivastava3728

    2 жыл бұрын

    Were you able to solve it ?? I am facing the error right now .

  • @Iamfoxbrown
    @Iamfoxbrown2 жыл бұрын

    Can you put the command to open RegisterForm case Login is OK? Please

  • @BoostMyTool

    @BoostMyTool

    2 жыл бұрын

    what's wrong with RegisterForm ? it is OK

  • @Iamfoxbrown

    @Iamfoxbrown

    2 жыл бұрын

    @@BoostMyTool I can´t switch the forms. Example: this -> close() but how can i open another one? I just need the command. thks you

  • @BoostMyTool

    @BoostMyTool

    2 жыл бұрын

    @@Iamfoxbrown did you watch the last 3 minutes (from 37:02) ?

  • @Iamfoxbrown

    @Iamfoxbrown

    2 жыл бұрын

    @@BoostMyTool switchToRegister. Ok. Thk you

  • @akikoishida5922
    @akikoishida59222 жыл бұрын

    Who says you are not the best???

  • @aryeshsrivastava3728
    @aryeshsrivastava37282 жыл бұрын

    I am having trouble connecting SQL with Visual Studio. It's giving the error "Failed to connect to database". Would be really helpful if anyone could help me solve this out.

  • @julesnaceno8874

    @julesnaceno8874

    Жыл бұрын

    hello sir I have the same problem let me know if you know something

  • @sabadvali9322

    @sabadvali9322

    Жыл бұрын

    i have the same problem to…….

  • @Nathan-yj4ks

    @Nathan-yj4ks

    Жыл бұрын

    @@sabadvali9322 did you find why ?

  • @sabadvali9322

    @sabadvali9322

    Жыл бұрын

    nah bro. try MySQL and connect from C language

  • @sabadvali9322

    @sabadvali9322

    Жыл бұрын

    @@Nathan-yj4ks if you have some problems from C language text me

  • @kenneththompson6710
    @kenneththompson67102 жыл бұрын

    😳 P r o m o S M!!

  • @rino19ny
    @rino19ny Жыл бұрын

    please don't make shortcuts! where are the codes you are pasting from?

  • @akikoishida5922
    @akikoishida59222 жыл бұрын

    Who says you are not the best???

  • @junioradi6554

    @junioradi6554

    2 жыл бұрын

    Nobody can. He is the best !!!