Click here to Skip to main content
15,888,802 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# login help Pin
RobScripta21-Dec-08 20:58
professionalRobScripta21-Dec-08 20:58 
GeneralRe: c# login help Pin
cobalt-rose22-Dec-08 13:19
cobalt-rose22-Dec-08 13:19 
GeneralRe: c# login help Pin
RobScripta22-Dec-08 23:49
professionalRobScripta22-Dec-08 23:49 
GeneralRe: c# login help Pin
cobalt-rose23-Dec-08 22:18
cobalt-rose23-Dec-08 22:18 
GeneralRe: c# login help Pin
RobScripta23-Dec-08 22:58
professionalRobScripta23-Dec-08 22:58 
GeneralRe: c# login help Pin
cobalt-rose24-Dec-08 1:56
cobalt-rose24-Dec-08 1:56 
GeneralRe: c# login help Pin
RobScripta24-Dec-08 3:45
professionalRobScripta24-Dec-08 3:45 
GeneralRe: c# login help Pin
cobalt-rose24-Dec-08 13:05
cobalt-rose24-Dec-08 13:05 
Hey, i was refering to this section of my code:

while (mysqlReader.Read())
{
string strusername;
string strpassword;

strusername = (mysqlReader["username"].ToString());
strpassword = (mysqlReader["password"].ToString());

if (strusername == uname && pword == strpassword)
{
main_screen mss = new main_screen();
mss.Show();
}

else
{
textBox3.Text = "YOU ARE LOGGED IN!";
}
}

isn't the if statement proving that the username and password exists? (in response to; "youve programmed it to do nothing")

isn't the main screen form supposed to open if there is a match between username and password?

and the if else statement textBox3.Text is supposed to show "you are now logged in"?

Neither of these are happening which means that somewhere the code is not working.
Merry Christmas by the way and thanks again for your comments!
GeneralRe: c# login help Pin
RobScripta24-Dec-08 20:50
professionalRobScripta24-Dec-08 20:50 
QuestionDowngrading ReaderWriterLockSlim UpgradeableReadLock to simple ReadLock Pin
HosamAly19-Dec-08 23:28
HosamAly19-Dec-08 23:28 
AnswerRe: Downgrading ReaderWriterLockSlim UpgradeableReadLock to simple ReadLock Pin
N a v a n e e t h20-Dec-08 0:57
N a v a n e e t h20-Dec-08 0:57 
GeneralRe: Downgrading ReaderWriterLockSlim UpgradeableReadLock to simple ReadLock Pin
HosamAly20-Dec-08 2:41
HosamAly20-Dec-08 2:41 
GeneralRe: Downgrading ReaderWriterLockSlim UpgradeableReadLock to simple ReadLock Pin
N a v a n e e t h20-Dec-08 7:32
N a v a n e e t h20-Dec-08 7:32 
Questionhow to write the values in textbox to xml format.. Pin
samsonx19-Dec-08 22:26
samsonx19-Dec-08 22:26 
AnswerRe: how to write the values in textbox to xml format.. Pin
Eddy Vluggen19-Dec-08 22:33
professionalEddy Vluggen19-Dec-08 22:33 
GeneralRe: how to write the values in textbox to xml format.. Pin
samsonx19-Dec-08 22:49
samsonx19-Dec-08 22:49 
GeneralRe: how to write the values in textbox to xml format.. Pin
Eddy Vluggen19-Dec-08 23:01
professionalEddy Vluggen19-Dec-08 23:01 
GeneralRe: how to write the values in textbox to xml format.. Pin
samsonx19-Dec-08 23:14
samsonx19-Dec-08 23:14 
GeneralRe: how to write the values in textbox to xml format.. Pin
samsonx19-Dec-08 23:29
samsonx19-Dec-08 23:29 
GeneralRe: how to write the values in textbox to xml format.. Pin
Christian Graus19-Dec-08 23:32
protectorChristian Graus19-Dec-08 23:32 
GeneralRe: how to write the values in textbox to xml format.. Pin
Christian Graus19-Dec-08 23:31
protectorChristian Graus19-Dec-08 23:31 
GeneralRe: how to write the values in textbox to xml format.. Pin
Eddy Vluggen20-Dec-08 1:57
professionalEddy Vluggen20-Dec-08 1:57 
QuestionClick Event Pin
hotthoughtguy19-Dec-08 22:19
hotthoughtguy19-Dec-08 22:19 
AnswerRe: Click Event Pin
Eddy Vluggen19-Dec-08 22:44
professionalEddy Vluggen19-Dec-08 22:44 
AnswerRe: Click Event Pin
Lev Danielyan19-Dec-08 22:46
Lev Danielyan19-Dec-08 22:46 

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.