| | |
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 algorithm array asp barchart bitmap box broadcast buttons c# check checkbox client column combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development display draganddrop drawing encryption enum equation event excel file form format formbox forms formupdate function gdi+ httpwebrequest image index input install java label linux list listbox mandelbrot math mouseclick mysql networking operator packaging parse path photoshop picturebox pixelinversion post powerpacks programming radians regex remote remoting reporting richtextbox robot server sleep socket sql statistics stream string table text textbox thread time timer transform treeview update usercontrol validation visualstudio webbrowser wfa windows winforms wpf xml






