| | |
some question about login window
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: 558 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for C#
.net 2d access algorithm application array asp.net automation barchart bitmap box broadcast button c# calendar chat check checkbox class code color control conversion csharp custom data database datagrid datagridview dataset degrees display dll drawing enum event excel file form format forms function gcd gdi+ graphics image index input interface internet list listbox login mandelbrot math mdi mysql numbers operator pda picturebox print programming protection radians remote remoting resource richtextbox saving search server sleep socket sounds sql statistics stored stream string studio table text textbox threading time timer update url validation variable vc++ visual visualstudio webbrowser windows winforms wpf write xml






