954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

PLZ PLZ HLP me ( in Show Form )



hi every body ..

in this link :

http://www.2shared.com/file/5935975/1e5b926d/client_with_pass.html


i wrote program in c#

in this program .. i wanna

[ if txtname == txtpassword ]
Show ( FrmClient ) ,, by click on button Login ..

==

BUT ..

in this code .. it shows ( a new form ) ,, not show ( FrmClient )..

i tried more more ten times .. but i havn't any nice results ..



I don't know .. Y ?


PLZ PLZ .. HLP me ..

i neeeeed this program more more ..


:"(

mini person
Newbie Poster
10 posts since Apr 2009
Reputation Points: 10
Solved Threads: 0
 

I noticed that if both the username and password textbox are blank, they proper access :P You might want to change this by doing

if(this.username.Text.Length < 5)
{
        MessageBox.Show("You must input 5 or more characters for    username!", null);
}
else if(this.password.Text == "")
{
       MessageBox.Show("You must input a password!", null)
}
papanyquiL
Junior Poster
168 posts since May 2009
Reputation Points: 55
Solved Threads: 18
 

thanx .. :p

..

but .. what about ( show FrmClient ) ?

did you found any result ?
:)

mini person
Newbie Poster
10 posts since Apr 2009
Reputation Points: 10
Solved Threads: 0
 

To show a form which is hidden use FrmClient.Show();

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

^_^

thanx Danny ..

--

i did it .. :$


i'm change form's name b4 any work ..


that's it ^_^


thanx ..

mini person
Newbie Poster
10 posts since Apr 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You