| | |
some question about login window
Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
mmmm, just take a look
c# Syntax (Toggle Plain Text)
bool Validate(string username, string password) { //you're code } //button login event handler void onClick_btnLogin(object sender, EventArgs e) { if(Validate(txtUserName.Text, txtPassword.Text)) { Form2 form2 = new Form2().Show(); this.Hide(); //to hide login form } else { //invalid username or password } }
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
So you hard code your passwords and usernames into your program, this is not very a good idea.
>>and load next window this step I can't over
I think you mean you cannot switch between the login window and the next. Well close the login form and open the main form.
A way to do this is open both forms but call form.Hide() on the main form. Then switch between form.Show() and form.Hide().
>>and load next window this step I can't over
I think you mean you cannot switch between the login window and the next. Well close the login form and open the main form.
A way to do this is open both forms but call form.Hide() on the main form. Then switch between form.Show() and form.Hide().
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Make love, no war. Cave ab homine unius libri.
Danny
![]() |
Similar Threads
- Natwest Online Banking Login Page issues (Viruses, Spyware and other Nasties)
- It's a Race! Login Problems (Windows NT / 2000 / XP)
- how to access an application from the Domain Server (Java)
- Login Window Disappears (Windows 95 / 98 / Me)
- Administrator password bypass / Serial ATA registry corruption (Windows NT / 2000 / XP)
- HTML question (JavaScript / DHTML / AJAX)
- FTP login question (Web Browsers)
- Windows Y2K - Computer loads to a point (Windows NT / 2000 / XP)
Other Threads in the C# Forum
- Previous Thread: Question about Dialog Box
- Next Thread: file upload
Views: 505 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast button c# chat check checkbox class client code color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development draganddrop drawing encryption event excel file files form format forms ftp function gcd gdi+ http httpwebrequest image index input install java label list listbox listener login math mouseclick mysql networking object operator path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource saving serialization server sleep socket sql statistics stream string tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






