Search results
Results from the WOW.Com Content Network
0. Use the ShowDialog () function on the login form to load the login form from within the main form of the application. This will prevent the MainForm being displayed until after the LoginForm has finished. private void MainForm_Load (object sender, EventArgs e) { var loginForm = new LoginForm (); loginForm.ShowDialog (); }
Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand
This solves the communication problem. For example I've exposed Label Property as public in Form1 which is modified in Form2. With this approach you can do communication in different ways. // Your Form1. public partial class Form1 : Form. {. public Form1() {. InitializeComponent();
For basic user: username = user, password = user, role = user. If the user enters username and password "admin" it should be directed to the admin page else it would be user page. This is my code: string query = "SELECT * from tbl_login WHERE Username = @username and password=@password"; con.Open(); SqlCommand sqlcmd = new SqlCommand(query, con);
98. I am tasked with implementing single sign-on for our customers as part of our next release. The flow exists as follows: User logs into their school's main portal system using a student id/password provided to him/her by the school. User clicks the link to my company's product. User is automatically taken to the dashboard page as if they had ...
Dec 12, 2018 at 14:24. 1. in your login form, there you will decide if the login is successful or not. after that, you probably call Close(). add DialogResult = DialogResult.OK before close. in doubt, show the code where you close the login form. – Cee McSharpface. Dec 12, 2018 at 14:27.
3. If you are using the Membership API, to limit the amount of failed attempts and the time window you need to set this in your web.config, like this: <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15">. <providers>. <clear/>.
28. To set a text box for password input: textBox1.PasswordChar = '*'; you can also change this property in design time by editing properties of the text box. To show if "Capslock is ON":
Solution. Connecting to an Active Directory is very easy. You must use the DirectoryEntry object (in the namespace System.DirectoryServices). The constructor for this object takes three strings in parameters: the path to the Active Directory. This path has the format: LDAP://your-name-AD. the username for the connection.
i try changing it to false still no change in behaviour.. when open the login page and log in once and then open a new window of that browser and try to open the website,, i dont need to login again.. but when i close all the windows and open the app again i come back to the login screen. –