| | |
some question about login window
Please support our C# advertiser: Intel Parallel Studio Home
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
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client combobox connection console control conversion csharp custom database datagrid datagridview dataset datetime degrees deployment developer development draganddrop drawing editing encryption enum event excel file form format forms function gdi+ hospitalmanagementinformationsystem httpwebrequest image imageprocessing index input install java label list listbox mandelbrot math mouseclick mysql operator oracle path photoshop picturebox pixelinversion post priviallages. programming radians regex remote remoting richtextbox rows serialization server sleep socket sql statistics stream string table temperature text textbox thread time timer txt update uploadatextfile usercontrol validation visualstudio webbrowser windows windowsformsapplication winforms wpf xml






