Create Login Window in C# step by step


This tutorials teach how to Create a Login window with c# and SQL server by won. Using c sharp programming, we create this login form. This is the best way to learn c#. Here Step by step learns concepts too.


Xem Thêm Bài Viết Khác:


  1. Can someone help me?

    When I start the program and then enter username and password. Click on LOGIN and there will always be an error message.


    error message

    System.Data.SqlClient.SqlException: "Invalid object name 'Login'."

  2. Sir i have one problem regarding this program.
    After completing coding without any errors and starts to debugging,the login window appears and then entered username and password and clicked on the login button the error occurred on sda.Fill(dt);
    The error named as –
    Instance-specific error occurred while establishing a connection to sql server. The server was not found or was not accessible. Verify that instance name is correct and the sql server is configured to allow remote connections. (Provider: sql network interfaces, error: 26 – error locating server/instance specified)

    Btw thanks for video its more understandable comparing to others…! Thanks a lot
    And please give me solution for above error..
    If you want me to contact with social media then I'm available!?

  3. Sir, I'm getting error while login to main page as I'm putting the wrong password but it still makes me login to main page. Please help me with it. :/

  4. thank you for your useful video, please I want to restrict the access to pages, for example, if someone has entered the link of the Add page *by copy the link and paste it in another browser * it will lead him first to the login page , so he will enforce to enter the username and the password, if you can help me I will owe you for ever .

  5. The Login form is just hidden, it's not close yet. In the debugging mode, the process for Login is still running.

  6. here not only 1 because assume that if a user name is already exist as two users then it will return 2 then it will in that case so we have compare >0. if it returns 0 means user not found, if 1 or 2,3 etc user is exist. since you are using Count function that will loop all the user name from that Username column.


Please enter your comment!
Please enter your name here