Click here to Skip to main content
15,911,646 members
Home / Discussions / C#
   

C#

 
Questioncopy file with c# win forms Pin
fady_sayegh24-Jan-06 23:28
fady_sayegh24-Jan-06 23:28 
AnswerRe: copy file with c# win forms Pin
James Gupta25-Jan-06 1:33
professionalJames Gupta25-Jan-06 1:33 
QuestionDebug target missing error message Pin
NewbieDude24-Jan-06 23:19
NewbieDude24-Jan-06 23:19 
Questionasking for code Pin
shazzney24-Jan-06 21:03
shazzney24-Jan-06 21:03 
AnswerRe: asking for code Pin
AB777124-Jan-06 21:12
AB777124-Jan-06 21:12 
GeneralRe: asking for code Pin
shazzney24-Jan-06 21:41
shazzney24-Jan-06 21:41 
GeneralRe: asking for code Pin
Guffa24-Jan-06 22:08
Guffa24-Jan-06 22:08 
GeneralRe: asking for code Pin
James Gupta25-Jan-06 1:36
professionalJames Gupta25-Jan-06 1:36 
a basic version would be:

string Password;
string Username;

///WHEN THE USER PRESSES OK///
{
if (tbUsername.Text == Username && tbPassword.Text == Password)
{
this.Close() //close the password entry form
form1.Enabled = true; //assuming the main form is form1
}
else label1.Text = "Username / Password Combination does not match";
}

you cannot really copy and paste this, but thats just lazy anyway

It should give you an idea of the structure you need to use for your program

Regards
James
QuestionLock and Unlock Pin
Virendrak24-Jan-06 19:58
Virendrak24-Jan-06 19:58 
AnswerRe: Lock and Unlock Pin
Guffa24-Jan-06 22:54
Guffa24-Jan-06 22:54 
GeneralRe: Lock and Unlock Pin
Virendrak24-Jan-06 23:01
Virendrak24-Jan-06 23:01 
GeneralRe: Lock and Unlock Pin
tarasn24-Jan-06 23:12
tarasn24-Jan-06 23:12 
GeneralRe: Lock and Unlock Pin
Virendrak24-Jan-06 23:39
Virendrak24-Jan-06 23:39 
GeneralRe: Lock and Unlock Pin
tarasn24-Jan-06 23:53
tarasn24-Jan-06 23:53 
AnswerRe: Lock and Unlock Pin
Guffa25-Jan-06 3:40
Guffa25-Jan-06 3:40 
QuestionC# eBooks Pin
NewbieDude24-Jan-06 19:40
NewbieDude24-Jan-06 19:40 
AnswerRe: C# eBooks Pin
imsathy24-Jan-06 19:55
imsathy24-Jan-06 19:55 
GeneralRe: C# eBooks Pin
Colin Angus Mackay24-Jan-06 22:40
Colin Angus Mackay24-Jan-06 22:40 
GeneralRe: C# eBooks Pin
Saravanan_article24-Jan-06 22:49
Saravanan_article24-Jan-06 22:49 
GeneralRe: C# eBooks Pin
James Gupta25-Jan-06 1:43
professionalJames Gupta25-Jan-06 1:43 
AnswerRe: C# eBooks Pin
HimaBindu Vejella15-Mar-06 22:16
HimaBindu Vejella15-Mar-06 22:16 
Answer[Message Removed] Pin
hankjmatt13-Oct-08 21:23
hankjmatt13-Oct-08 21:23 
QuestionC# login application Pin
julien27ph24-Jan-06 19:28
julien27ph24-Jan-06 19:28 
AnswerRe: C# login application Pin
AB777124-Jan-06 19:45
AB777124-Jan-06 19:45 
GeneralRe: C# login application Pin
julien27ph26-Jan-06 13:53
julien27ph26-Jan-06 13:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.