├── LoginApp.suo ├── DB ├── LoginDB.mdf └── LoginDB_log.LDF ├── LoginApp.v11.suo ├── LoginApp ├── bin │ └── Debug │ │ ├── LoginApp.exe │ │ ├── LoginApp.pdb │ │ ├── LoginApp.vshost.exe │ │ └── LoginApp.vshost.exe.manifest ├── obj │ └── x86 │ │ └── Debug │ │ ├── LoginApp.exe │ │ ├── LoginApp.pdb │ │ ├── LoginApp.frmLogin.resources │ │ ├── LoginApp.frmMain.resources │ │ ├── LoginApp.csproj.GenerateResource.Cache │ │ ├── LoginApp.Properties.Resources.resources │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ ├── LoginApp.csprojResolveAssemblyReference.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ └── LoginApp.csproj.FileListAbsolute.txt ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── frmMain.cs ├── Program.cs ├── frmLogin.cs ├── frmMain.Designer.cs ├── LoginApp.csproj ├── frmLogin.resx ├── frmMain.resx └── frmLogin.Designer.cs ├── LoginApp.sln └── README.md /LoginApp.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp.suo -------------------------------------------------------------------------------- /DB/LoginDB.mdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/DB/LoginDB.mdf -------------------------------------------------------------------------------- /LoginApp.v11.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp.v11.suo -------------------------------------------------------------------------------- /DB/LoginDB_log.LDF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/DB/LoginDB_log.LDF -------------------------------------------------------------------------------- /LoginApp/bin/Debug/LoginApp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/bin/Debug/LoginApp.exe -------------------------------------------------------------------------------- /LoginApp/bin/Debug/LoginApp.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/bin/Debug/LoginApp.pdb -------------------------------------------------------------------------------- /LoginApp/obj/x86/Debug/LoginApp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/obj/x86/Debug/LoginApp.exe -------------------------------------------------------------------------------- /LoginApp/obj/x86/Debug/LoginApp.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/obj/x86/Debug/LoginApp.pdb -------------------------------------------------------------------------------- /LoginApp/bin/Debug/LoginApp.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/bin/Debug/LoginApp.vshost.exe -------------------------------------------------------------------------------- /LoginApp/obj/x86/Debug/LoginApp.frmLogin.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/obj/x86/Debug/LoginApp.frmLogin.resources -------------------------------------------------------------------------------- /LoginApp/obj/x86/Debug/LoginApp.frmMain.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/obj/x86/Debug/LoginApp.frmMain.resources -------------------------------------------------------------------------------- /LoginApp/obj/x86/Debug/LoginApp.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/obj/x86/Debug/LoginApp.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /LoginApp/obj/x86/Debug/LoginApp.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/obj/x86/Debug/LoginApp.Properties.Resources.resources -------------------------------------------------------------------------------- /LoginApp/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /LoginApp/obj/x86/Debug/LoginApp.csprojResolveAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/obj/x86/Debug/LoginApp.csprojResolveAssemblyReference.cache -------------------------------------------------------------------------------- /LoginApp/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodAffection/Login-Form-in-Csharp/master/LoginApp/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /LoginApp/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /LoginApp/frmMain.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | namespace LoginApp 11 | { 12 | public partial class frmMain : Form 13 | { 14 | public frmMain() 15 | { 16 | InitializeComponent(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /LoginApp/bin/Debug/LoginApp.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /LoginApp/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace LoginApp 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new frmLogin()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /LoginApp/obj/x86/Debug/LoginApp.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Do Not Delete\LoginApp\LoginApp\obj\x86\Debug\LoginApp.frmLogin.resources 2 | C:\Do Not Delete\LoginApp\LoginApp\obj\x86\Debug\LoginApp.frmMain.resources 3 | C:\Do Not Delete\LoginApp\LoginApp\obj\x86\Debug\LoginApp.Properties.Resources.resources 4 | C:\Do Not Delete\LoginApp\LoginApp\obj\x86\Debug\LoginApp.csproj.GenerateResource.Cache 5 | C:\Do Not Delete\LoginApp\LoginApp\bin\Debug\LoginApp.exe 6 | C:\Do Not Delete\LoginApp\LoginApp\bin\Debug\LoginApp.pdb 7 | C:\Do Not Delete\LoginApp\LoginApp\obj\x86\Debug\LoginApp.exe 8 | C:\Do Not Delete\LoginApp\LoginApp\obj\x86\Debug\LoginApp.pdb 9 | C:\Do Not Delete\LoginApp\LoginApp\obj\x86\Debug\LoginApp.csprojResolveAssemblyReference.cache 10 | -------------------------------------------------------------------------------- /LoginApp.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LoginApp", "LoginApp\LoginApp.csproj", "{427281A7-FB04-4A43-8CEB-E38CA9E0AFE5}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {427281A7-FB04-4A43-8CEB-E38CA9E0AFE5}.Debug|x86.ActiveCfg = Debug|x86 13 | {427281A7-FB04-4A43-8CEB-E38CA9E0AFE5}.Debug|x86.Build.0 = Debug|x86 14 | {427281A7-FB04-4A43-8CEB-E38CA9E0AFE5}.Release|x86.ActiveCfg = Release|x86 15 | {427281A7-FB04-4A43-8CEB-E38CA9E0AFE5}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /LoginApp/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.34003 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace LoginApp.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /LoginApp/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("LoginApp")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("LoginApp")] 13 | [assembly: AssemblyCopyright("Copyright © 2016")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("ab9f56e1-e99a-417c-be62-ebc567886cfe")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /LoginApp/frmLogin.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | using System.Data.SqlClient; 10 | 11 | namespace LoginApp 12 | { 13 | public partial class frmLogin : Form 14 | { 15 | public frmLogin() 16 | { 17 | InitializeComponent(); 18 | } 19 | 20 | private void btnLogin_Click(object sender, EventArgs e) 21 | { 22 | SqlConnection sqlcon = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Do Not Delete\LoginApp\DB\LoginDB.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"); 23 | string query = "Select * from tbl_Login Where username = '" + txtUsername.Text.Trim() + "' and password = '" + txtPassword.Text.Trim() + "'"; 24 | SqlDataAdapter sda = new SqlDataAdapter(query, sqlcon); 25 | DataTable dtbl = new DataTable(); 26 | sda.Fill(dtbl); 27 | if (dtbl.Rows.Count == 1) 28 | { 29 | frmMain objFrmMain = new frmMain(); 30 | this.Hide(); 31 | objFrmMain.Show(); 32 | } 33 | else 34 | { 35 | MessageBox.Show("Check your username and password"); 36 | } 37 | 38 | } 39 | 40 | private void btnExit_Click(object sender, EventArgs e) 41 | { 42 | this.Close(); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /LoginApp/frmMain.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace LoginApp 2 | { 3 | partial class frmMain 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.SuspendLayout(); 32 | // 33 | // frmMain 34 | // 35 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 36 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 37 | this.ClientSize = new System.Drawing.Size(956, 471); 38 | this.Name = "frmMain"; 39 | this.ShowIcon = false; 40 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 41 | this.Text = "Dashboard"; 42 | this.ResumeLayout(false); 43 | 44 | } 45 | 46 | #endregion 47 | } 48 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # How to Create Login Form in C# Application 2 | With this project, we've demonstrated how you authenticate an user in C#. 3 | 4 | ## Get the Code 5 | 6 | ``` 7 | $ git clone https://github.com/CodAffection/Login-Form-in-Csharp.git 8 | ``` 9 | 10 | ## How it works ? 11 | 12 | :tv: Video tutorial on this same topic 13 | Url : https://youtu.be/NX8-LhgFnUU 14 | 15 | Video Tutorial for Login Form in C# Application 18 | 19 | 20 | | :bar_chart: | List of Tutorials | | :moneybag: | Support Us | 21 | |--------------------------:|:---------------------|---|---------------------:|:-------------------------------------| 22 | | Angular |http://bit.ly/2KQN9xF | |Paypal | https://goo.gl/bPcyXW | 23 | | Asp.Net Core |http://bit.ly/30fPDMg | |Amazon Affiliate | https://geni.us/JDzpE | 24 | | React |http://bit.ly/325temF | | 25 | | Python |http://bit.ly/2ws4utg | | :point_right: | Follow Us | 26 | | Node.js |https://goo.gl/viJcFs | |Website |http://www.codaffection.com | 27 | | Asp.Net MVC |https://goo.gl/gvjUJ7 | |YouTube |https://www.youtube.com/codaffection | 28 | | Flutter |https://bit.ly/3ggmmJz| |Facebook |https://www.facebook.com/codaffection | 29 | | Web API |https://goo.gl/itVayJ | |Twitter |https://twitter.com/CodAffection | 30 | | MEAN Stack |https://goo.gl/YJPPAH | | 31 | | C# Tutorial |https://goo.gl/s1zJxo | | 32 | | Asp.Net WebForm |https://goo.gl/GXC2aJ | | 33 | | C# WinForm |https://goo.gl/vHS9Hd | | 34 | | MS SQL |https://goo.gl/MLYS9e | | 35 | | Crystal Report |https://goo.gl/5Vou7t | | 36 | | CG Exercises in C Program |https://goo.gl/qEWJCs | | 37 | -------------------------------------------------------------------------------- /LoginApp/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.34003 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace LoginApp.Properties 12 | { 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// Returns the cached ResourceManager instance used by this class. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("LoginApp.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// Overrides the current thread's CurrentUICulture property for all 56 | /// resource lookups using this strongly typed resource class. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /LoginApp/LoginApp.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | x86 6 | 8.0.30703 7 | 2.0 8 | {427281A7-FB04-4A43-8CEB-E38CA9E0AFE5} 9 | WinExe 10 | Properties 11 | LoginApp 12 | LoginApp 13 | v4.0 14 | Client 15 | 512 16 | 17 | 18 | x86 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | x86 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | Form 51 | 52 | 53 | frmLogin.cs 54 | 55 | 56 | Form 57 | 58 | 59 | frmMain.cs 60 | 61 | 62 | 63 | 64 | frmLogin.cs 65 | 66 | 67 | frmMain.cs 68 | 69 | 70 | ResXFileCodeGenerator 71 | Resources.Designer.cs 72 | Designer 73 | 74 | 75 | True 76 | Resources.resx 77 | 78 | 79 | SettingsSingleFileGenerator 80 | Settings.Designer.cs 81 | 82 | 83 | True 84 | Settings.settings 85 | True 86 | 87 | 88 | 89 | 96 | -------------------------------------------------------------------------------- /LoginApp/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /LoginApp/frmLogin.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /LoginApp/frmMain.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | -------------------------------------------------------------------------------- /LoginApp/frmLogin.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace LoginApp 2 | { 3 | partial class frmLogin 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.btnLogin = new System.Windows.Forms.Button(); 32 | this.label1 = new System.Windows.Forms.Label(); 33 | this.txtUsername = new System.Windows.Forms.TextBox(); 34 | this.label2 = new System.Windows.Forms.Label(); 35 | this.txtPassword = new System.Windows.Forms.TextBox(); 36 | this.btnExit = new System.Windows.Forms.Button(); 37 | this.SuspendLayout(); 38 | // 39 | // btnLogin 40 | // 41 | this.btnLogin.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 42 | this.btnLogin.Location = new System.Drawing.Point(115, 97); 43 | this.btnLogin.Name = "btnLogin"; 44 | this.btnLogin.Size = new System.Drawing.Size(75, 23); 45 | this.btnLogin.TabIndex = 0; 46 | this.btnLogin.Text = "Login"; 47 | this.btnLogin.UseVisualStyleBackColor = true; 48 | this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click); 49 | // 50 | // label1 51 | // 52 | this.label1.AutoSize = true; 53 | this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 54 | this.label1.Location = new System.Drawing.Point(33, 27); 55 | this.label1.Name = "label1"; 56 | this.label1.Size = new System.Drawing.Size(71, 16); 57 | this.label1.TabIndex = 1; 58 | this.label1.Text = "Username"; 59 | // 60 | // txtUsername 61 | // 62 | this.txtUsername.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 63 | this.txtUsername.Location = new System.Drawing.Point(115, 24); 64 | this.txtUsername.Name = "txtUsername"; 65 | this.txtUsername.Size = new System.Drawing.Size(157, 22); 66 | this.txtUsername.TabIndex = 2; 67 | // 68 | // label2 69 | // 70 | this.label2.AutoSize = true; 71 | this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 72 | this.label2.Location = new System.Drawing.Point(33, 64); 73 | this.label2.Name = "label2"; 74 | this.label2.Size = new System.Drawing.Size(68, 16); 75 | this.label2.TabIndex = 1; 76 | this.label2.Text = "Password"; 77 | // 78 | // txtPassword 79 | // 80 | this.txtPassword.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 81 | this.txtPassword.Location = new System.Drawing.Point(115, 61); 82 | this.txtPassword.Name = "txtPassword"; 83 | this.txtPassword.PasswordChar = '*'; 84 | this.txtPassword.Size = new System.Drawing.Size(157, 22); 85 | this.txtPassword.TabIndex = 2; 86 | // 87 | // btnExit 88 | // 89 | this.btnExit.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 90 | this.btnExit.Location = new System.Drawing.Point(197, 97); 91 | this.btnExit.Name = "btnExit"; 92 | this.btnExit.Size = new System.Drawing.Size(75, 23); 93 | this.btnExit.TabIndex = 0; 94 | this.btnExit.Text = "Exit"; 95 | this.btnExit.UseVisualStyleBackColor = true; 96 | this.btnExit.Click += new System.EventHandler(this.btnExit_Click); 97 | // 98 | // frmLogin 99 | // 100 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 101 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 102 | this.ClientSize = new System.Drawing.Size(351, 170); 103 | this.Controls.Add(this.txtPassword); 104 | this.Controls.Add(this.txtUsername); 105 | this.Controls.Add(this.label2); 106 | this.Controls.Add(this.label1); 107 | this.Controls.Add(this.btnExit); 108 | this.Controls.Add(this.btnLogin); 109 | this.MaximizeBox = false; 110 | this.Name = "frmLogin"; 111 | this.ShowIcon = false; 112 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 113 | this.Text = "Login"; 114 | this.ResumeLayout(false); 115 | this.PerformLayout(); 116 | 117 | } 118 | 119 | #endregion 120 | 121 | private System.Windows.Forms.Button btnLogin; 122 | private System.Windows.Forms.Label label1; 123 | private System.Windows.Forms.TextBox txtUsername; 124 | private System.Windows.Forms.Label label2; 125 | private System.Windows.Forms.TextBox txtPassword; 126 | private System.Windows.Forms.Button btnExit; 127 | } 128 | } --------------------------------------------------------------------------------