Тёмный

Create Login Window in C# Using Sql Server 

CodAffection
Подписаться 146 тыс.
Просмотров 553 тыс.
50% 1

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

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 334   
@CodAffection
@CodAffection 7 лет назад
goo.gl/RFY5C2 : Subscribe to CodAffection goo.gl/Z6SkSC : C# CRUD Operations With DB goo.gl/WsgPbp : C# User Registration With DB goo.gl/Gu5q37 : Export PDF in C#
@rjcreations6727
@rjcreations6727 4 года назад
I am beginner to C#. Search many places. But your explained the working method step by step. Thanks a lot.
@CodAffection
@CodAffection 4 года назад
Glad to hear that
@madmac558
@madmac558 4 года назад
Tried this for a project i am building, very helpful Thank you. You should upload some recent videos like this of Visual Studio 2019
@connief2679
@connief2679 3 года назад
OMG! You saved me! Thought I was going to be up all night again trying to finish my project, but this video was SOOO helpful! Thank you, thank you, thank you.
@ishkasewshanker3813
@ishkasewshanker3813 2 года назад
did u finish it?
@ness9038
@ness9038 2 года назад
@@ishkasewshanker3813 we hope so
@Error-vd1yo
@Error-vd1yo 4 года назад
please help I am at 17:50, and I get this error no matter what System.Data.SqlClient.SqlException: 'Incorrect syntax near the keyword 'Table'.'
@mikhalpalych
@mikhalpalych 4 года назад
Same
@sameeraprasantha4586
@sameeraprasantha4586 2 года назад
Thank you.!
@SMart-iy7zx
@SMart-iy7zx 4 года назад
even after 4 years it`s a best video. thx man
@ronaldjohnson4470
@ronaldjohnson4470 6 лет назад
Great tutorial, Thank you.
@warzhydra990
@warzhydra990 5 лет назад
This helped me a lot😊thank youw❤
@user-cd2tz9kd6q
@user-cd2tz9kd6q 5 лет назад
Crystal clear! Thanks a lot.
@josemarlitoplanteras8829
@josemarlitoplanteras8829 4 года назад
System.Data.SqlClient.SqlException (0x80131904): An attempt to attach an auto-named database for file C: \Users\jmpla\source epos\Aqua Lab\DataBase\LoginDB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. HELPPP
@TarunKumar-ry7bc
@TarunKumar-ry7bc 2 года назад
Thanks man i have windows app interview today thanks a lot
@georgevetolavman
@georgevetolavman 6 лет назад
Thank you sir! Very good tutorial.
@truebittech
@truebittech 4 года назад
I cant debug it shows 1)The name 'txtusername' does not exist in the current context 2)The name 'txtpassword' does not exist in the current context Plz help what I do
@timeforqbing3247
@timeforqbing3247 4 года назад
same thing(((
@yasmine2176
@yasmine2176 2 года назад
thankyou you just saved my life
@sheivongamboa
@sheivongamboa 4 года назад
Use secure procedure is better than leaving open SQL query string
@ichbindummwaasduauch6358
@ichbindummwaasduauch6358 7 лет назад
Can you help me? At the saving 8:45 if I click OK at save in into DB it doesnt show in server explorer at tables
@nottokyo1401
@nottokyo1401 3 года назад
In stead of saving the file, click the UPDATE button in the top left cornor of the window, then you'll get a window where you can click execute query, your table will be added to your database ;)
@WayEngineer
@WayEngineer 5 лет назад
Super gooooood!!! Thank you!)))
@farahsghaier9891
@farahsghaier9891 3 года назад
Thanks for this tutorial , but I have a problem with the sda.Fill(dtbl). ==> System.Data.SqlClient.SqlException: 'An expression of non-boolean type specified in a context where a condition is expected, near 'de'.' I have already read the comments and i didn't find the right answer . Please answer me as soon as possible.
@Killermonktr
@Killermonktr 2 года назад
im stuck there aswell, hope u found an answer after a year xD
@chaitu_ash7600
@chaitu_ash7600 4 года назад
Thank you for good subject guven for me....i have an doubt I. E., u r creating one table that is login table in database right, in that table first username value is 1 only....y u giving user1 as in username value in login form? 1 and user1 both r same in this situation? Please clarify my doubt as soon as possible. I'm waiting for ur response. Tq
@CodAffection
@CodAffection 4 года назад
sorry, I didn't get you.
@OwlYaRlyRUS
@OwlYaRlyRUS 6 лет назад
Hi, I have a question. In video, you have one main form. But if I have two, and for each form I have login and password, how I can realize this? 9:10 - I see, you create here 2 users, but you didn't use 2nd user in code. I try did it - I remade part of code "if(dtbl.Rows.Count == 1)", where I changed 1 to 2 and changed text in braces for my 2nd form and this reworked part I inserted after "else {...}". But when I run the application and enter the data for the second user, Visual Studio opens for some reason the first form. What should I do?
@devmanav6808
@devmanav6808 6 лет назад
Thanks Lot very helpful keep it up !!!
@earnafterlearn9765
@earnafterlearn9765 6 лет назад
Best tutorial so far for login authentication..
@CodAffection
@CodAffection 6 лет назад
I am glad you found the video helpful.
@Ramishka1998
@Ramishka1998 4 года назад
Thank You Sir....!!!!
@vega7836
@vega7836 5 лет назад
Thank you very much! My software buyers can now safely use their purchased program!
@CodAffection
@CodAffection 5 лет назад
glad you found the video helpful in your live projects.
@digitplays4008
@digitplays4008 4 года назад
What a load lol, if anyone was buying software it wouldnt be from someone who couldnt make a login form.
@bomb4ik
@bomb4ik 3 года назад
Thank you
@Cloink
@Cloink 5 лет назад
when i try to save the table it comes up a menu asking me where i want to save it to, and doesn't apper in the tables collum after, any help???
@MuhammadAli-ld1df
@MuhammadAli-ld1df 5 лет назад
same problem can any body help plz?
@user-dh5ky3mu9b
@user-dh5ky3mu9b 4 года назад
Did u solve this problem?
@user-dh5ky3mu9b
@user-dh5ky3mu9b 4 года назад
@@MuhammadAli-ld1df Did u solve this problem?
@lehlohonolomotloung1167
@lehlohonolomotloung1167 4 года назад
not sure if this will help. I had the same issue and resolved it by disconnecting from the SQL instance and connecting again.
@4skin429
@4skin429 4 года назад
you can right click on the sql table and click show table thingy
@g3nito409
@g3nito409 5 лет назад
Bro much love for you you helped me a lot i loveyou so much have a great life
@CodAffection
@CodAffection 5 лет назад
thanks for the wonderful comment.
@helengargantiel4065
@helengargantiel4065 2 года назад
thank you so much! ❤
@justjase10
@justjase10 Год назад
Thanks for the help, it worked🎉
@leedenbigh
@leedenbigh 6 лет назад
Thank you very much for this.
@lehlohonolomotloung1167
@lehlohonolomotloung1167 4 года назад
This was pretty helpful. Thanks a mill
@simobl8277
@simobl8277 4 года назад
this helped me thank you bro
@Cossack3000
@Cossack3000 6 лет назад
Crystal clear. Thanks for the explanation, it really helped!
@gizachewadane6262
@gizachewadane6262 6 лет назад
Thank you it has Great tutorial
@rohithiwale3750
@rohithiwale3750 7 лет назад
Thank you For helping Others!!!!!!
@Rebelvlog07
@Rebelvlog07 6 лет назад
nice uploade more video related windows form
@JulianPrithiviraj
@JulianPrithiviraj Год назад
very useful thanks a lot
@KiKus121
@KiKus121 Год назад
I love u man, thank u :)
@TheDarknesssGaming
@TheDarknesssGaming 4 года назад
Thanks very cool
@Scaramouche122
@Scaramouche122 3 года назад
*YOU ARE THE BEST!!!*
@harikrishnants8545
@harikrishnants8545 4 года назад
I"m using Visual studio 2019. I cannot create tables with the steps provided by you. In the Server Explorer under the table it shows nothing.
@hackslash834
@hackslash834 4 года назад
Don't know if you figured it out or not but I will leave this here for anyone with the same problem. There is an update button at the top of the table you can click on. It will then save it on the existing mdf file. Under the table there is a sql query on that you can edit your table. Make changes here. To see the change or whether your table is created or not you have to rightclick the table folder on the database connection and refresh.
@karthiknayak5632
@karthiknayak5632 4 года назад
@@hackslash834 ya i fixed the issue thanks for the comment.
@CodAffection
@CodAffection 4 года назад
thanks for sharing your thoughts.
@kasyfredy
@kasyfredy 7 лет назад
Your are the Best mate! straightforward and easy to follow the steps, Thanks...
@CodAffection
@CodAffection 7 лет назад
you are welcome, by the way thanks for watching my video
@zafersogutcu
@zafersogutcu 8 лет назад
Thank you very much, it worked perfectly!
@CodAffection
@CodAffection 8 лет назад
I'm glad it helped.
@FlamingSteed
@FlamingSteed 3 года назад
god bless you and your voice
@lucasbraga8569
@lucasbraga8569 6 лет назад
You helped me a lot. Thank you!
@CodAffection
@CodAffection 6 лет назад
you are welcome.
@mohinisonawane991
@mohinisonawane991 7 лет назад
Thank you so much very helpful :-)
@CodAffection
@CodAffection 7 лет назад
thanks for the comment.
@mpumelelosicelomthethwa4635
@mpumelelosicelomthethwa4635 6 лет назад
Thanks alot man, very useful!!
@CodAffection
@CodAffection 6 лет назад
:)
@MajidAliRN
@MajidAliRN 5 лет назад
Those having issue with sda.Fill(dt); please, check your sda query, the username and password we are using from input in the query should have apostrophes " ' " enclosing them. please, check the code carefully and make sure you add those, and your problem will be solved.
@CodAffection
@CodAffection 5 лет назад
thanks for the info . hope you found this C# tutorial helpful.
@MajidAliRN
@MajidAliRN 5 лет назад
@@CodAffection yes sir, your turorial has helped me a lot. Thank you so much !
@spikeisback
@spikeisback 7 лет назад
System.Data.SqlClient.SqlException: 'An attempt to attach an auto-named database for file C: \Users\sam\Desktop\Passwords And user.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.'
@CodAffection
@CodAffection 7 лет назад
try this stackoverflow.com/a/14779107/4133590
@gaborkosa263
@gaborkosa263 2 года назад
sir! thank you!its works fine!
@kshitijbali6915
@kshitijbali6915 4 года назад
I wrote my code exactly like this, only my table name is /*Signup*/. Upon running the application even after entering correct username and password it is saying check username and password. Please help
@programmer313
@programmer313 2 года назад
Hi sir I have some problem when I write the correct username and password its show not correct I don't know why can you help me please?
@user-vq7el7cz4j
@user-vq7el7cz4j 3 года назад
query one record then direct to main form to open but not to match successfully with bool true.
@Ivan-tb1cw
@Ivan-tb1cw 7 лет назад
bakit kapag pinipindot ko yung login ganto nalabas? An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll Additional information: An attempt to attach an auto-named database for file C: \Users\Mercado\Documents\Visual Studio 2015\Projects\GenericoCashieringSystem\GenericoCashieringSystem\LoginDB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
@blacksmith9259
@blacksmith9259 4 года назад
thank you very very mutch God Bless You
@jaydipgadhiya2265
@jaydipgadhiya2265 4 года назад
Server Explore in Data Connections in LoginDB in Table in File do not show. Please sir Help me
@teamfired3843
@teamfired3843 4 года назад
same
@a1994s
@a1994s 2 года назад
thanks a million bro.
@RadhaKrishna_777
@RadhaKrishna_777 4 года назад
😍😇 thnk U sO mUch sir !!
@JStream
@JStream 6 лет назад
this still works until now :D
@jonaspalmiano7211
@jonaspalmiano7211 3 года назад
THANK YOU!
@jesvirsubang6725
@jesvirsubang6725 5 лет назад
how can i display the name of the user who logged in to the next form?
@jeremychu8922
@jeremychu8922 5 лет назад
you need the database varible and in textlabel script label.text = "varible"
@YamiKeizerLeon
@YamiKeizerLeon 7 лет назад
Thanks! Its working :D
@n3odemencial30
@n3odemencial30 2 года назад
The name 'ObjFrmMain' not exist at the current context. could you help me please?
@user-tf7te5fs2n
@user-tf7te5fs2n 3 года назад
How to create it for multi user so every one has different form apperead after logging in??
@akshaygadilkar8994
@akshaygadilkar8994 6 лет назад
Sir you are the best
@CodAffection
@CodAffection 6 лет назад
My Pleasure, Happy Coding
@techsics5456
@techsics5456 3 года назад
Thanks a lot❤️❤️❤️❤️
@HANIFASATTAR
@HANIFASATTAR 3 года назад
Very nice person
@nguyenhoanghuy8456
@nguyenhoanghuy8456 3 года назад
Good
@rw12player39
@rw12player39 4 года назад
nice tutorial
@teach2088
@teach2088 4 года назад
thanks bruda
@Vapsiz
@Vapsiz 6 лет назад
when I hit add a table it just says loading... the design surface is loading.. it's been 27 minutes ffs
@Subst4nce12
@Subst4nce12 4 года назад
thanx man love ya and drink some water :) thanx for the help
@mryan5522
@mryan5522 4 года назад
but the password string anyone can see if they open sql server database. How can convert the password string into some unique symbol in sql server that is not the password we type in the text box?
@thqdaska
@thqdaska 4 года назад
When I add table n databse it doesnot appear in table option.
@rehanfarooq1122
@rehanfarooq1122 5 лет назад
thanks for this video bro
@SamMeiki
@SamMeiki 2 года назад
Thank you!!!!!
@gabrielavila953
@gabrielavila953 5 лет назад
how can i fix Error 1 An object reference is required for the non-static field, method, or property 'System.Windows.Forms.Control.Show()' c:\users eda\documents\visual studio 2010\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs 33 16 WindowsFormsApplication1
@atluong6236
@atluong6236 7 лет назад
Great. Thanks so much :D
@CodAffection
@CodAffection 7 лет назад
you are welcome
@tejas4054
@tejas4054 3 года назад
Why u used disconnected architecture ,,,, connected architecture is used
@localbus7008
@localbus7008 3 года назад
Dear I got error ' invalid object name ' ? Please help me..
@johnkarippery9919
@johnkarippery9919 4 года назад
is that possible when i click login it navigate to my google account?
@masteronepiece6559
@masteronepiece6559 3 года назад
This is not the best way to login to a database.
@Smile-dk3eh
@Smile-dk3eh 6 лет назад
Main Menu - the window which opens after corrrect login. After closing Main Menu window the program doesn't close(
@feeqqaa
@feeqqaa 6 лет назад
Hi, I'm using VS 2017. Thank you for this video, it is great and so helpful! But I followed exactly as what you have shown but when I entered the right credentials, it will run the else statement still. Do you know how I can fix this? Thank you in advance~!
@CodAffection
@CodAffection 6 лет назад
did you check with break points?
@feeqqaa
@feeqqaa 6 лет назад
CodAffection sorry, but how do I do that?
@CodAffection
@CodAffection 6 лет назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FKAOHtxiloA.html
@Sajidhussain302
@Sajidhussain302 4 года назад
so sweet
@gandhidhamcomputers9664
@gandhidhamcomputers9664 6 лет назад
Thank you so much for the Code it will help me for life time
@CodAffection
@CodAffection 6 лет назад
Glad you found the video helpful.
@ksktamiltech4130
@ksktamiltech4130 4 года назад
@@CodAffectionru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VuAblmhisxc.html
@sahejnarang8911
@sahejnarang8911 3 года назад
thanks bro
@Hearte12356
@Hearte12356 7 лет назад
Thank you very much !!!!
@CodAffection
@CodAffection 7 лет назад
you are welcome.
@omkarbadhe421
@omkarbadhe421 3 года назад
Please tutorial of coding
@bandaraharan9018
@bandaraharan9018 5 лет назад
It works, Thank you
@abdelkiki
@abdelkiki 3 года назад
Thank you si much
@errolcano8333
@errolcano8333 5 лет назад
Good day maam/sir can i ask for a help 😭😭 im doing right now a kiosks project and i dont know how to pass a value from exe to another exe 😭😭😭
@salikomarpatug7024
@salikomarpatug7024 8 месяцев назад
Life saver
@bagup_alpharetards
@bagup_alpharetards 5 лет назад
At 8:40 when i press ctl+s instead of showing a dialoge box that shows in the video like choose name, my PC asks to saves the file in my documents or in local disk drive instead of saving it in visual studio like a dialoge box has appeared for the name of the table. Please can someone help. Please.
@CyberKittenlol
@CyberKittenlol 5 лет назад
I think i have the same problem too. I first save a place where in your drive then in the upper-left corner of the Table Designer, select the Update button. Then you save it I think(because im trying
@ibtihelhacheni8365
@ibtihelhacheni8365 6 лет назад
the frmMain is not colored , what should i do ?
@sinistergt426
@sinistergt426 4 года назад
YOUR VOICE LOOOOOOOL
@daniealasyraf9129
@daniealasyraf9129 7 лет назад
Why this error occur at 'sda.Fill(dtbl)'? Exception unhandled System.Data.SqlClient.SqlException: 'An attempt to attach an auto-named database for file C: \Users\User\Documents\Visual Studio 2017\Projects\LoginApp\DB\LoginDB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.'
@CodAffection
@CodAffection 7 лет назад
did you download the source code ?
@daniealasyraf9129
@daniealasyraf9129 7 лет назад
Yes... can you teach me how to enter RC4 encryption for the password?
@justinromaine3493
@justinromaine3493 6 лет назад
How to make it to connect to a website Sql data have I replaced the like url for the database with the remote database but when I hit start it will stop saying like it can't connect but it's connected in visual studio.
@CodAffection
@CodAffection 6 лет назад
you want to connect Live SQL Server Database ?
@sherifashref8833
@sherifashref8833 6 лет назад
the fill function does not work like that it say a missing .. the error message says that the server was not found or was not accessible
@CodAffection
@CodAffection 6 лет назад
please verify your connection string.
Далее
Новый уровень твоей сосиски
00:33
Create Login Window in C# step by step
16:35
Просмотров 2,5 млн
Angular User Registration with  Asp.Net Core Web API
1:39:28
Entity Framework - Insert Update and Delete in C#
32:08
Asp.Net Core Web API CRUD with Angular 16
1:35:58
Просмотров 116 тыс.
C#  Insert Update Delete View and Search
49:38
Просмотров 285 тыс.