Click here to Skip to main content
16,011,839 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to scroll the second panel by scrollbar in first panel? Pin
Harvey Saayman22-Jun-08 23:24
Harvey Saayman22-Jun-08 23:24 
GeneralRe: How to scroll the second panel by scrollbar in first panel? Pin
cocoonwls22-Jun-08 23:58
cocoonwls22-Jun-08 23:58 
GeneralRe: How to scroll the second panel by scrollbar in first panel? Pin
Harvey Saayman23-Jun-08 0:12
Harvey Saayman23-Jun-08 0:12 
GeneralRe: How to scroll the second panel by scrollbar in first panel? Pin
cocoonwls23-Jun-08 0:16
cocoonwls23-Jun-08 0:16 
QuestionSet the computer Date and Time (Format) Pin
Programm3r22-Jun-08 20:09
Programm3r22-Jun-08 20:09 
AnswerRe: Set the computer Date and Time (Format) Pin
Programm3r22-Jun-08 20:47
Programm3r22-Jun-08 20:47 
QuestionConnect to access 2007 to check username and password for windows form Pin
jackburton22-Jun-08 19:57
jackburton22-Jun-08 19:57 
AnswerRe: Connect to access 2007 to check username and password for windows form Pin
Harvey Saayman22-Jun-08 20:18
Harvey Saayman22-Jun-08 20:18 
hey jb,

first of all please use pre tags when you posting so much code, no on wants to read non-indented code...

try using this query

SELECT COUNT(userID) 
WHERE userName = 'yourUserNameTextBoxText' AND password = 'yourPasswordTextBoxText'


then in the program just check that the return value of that query == 1; if not there was no match therefore either the username or password was incorrect

good luck

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL

you.suck = (you.passion != Programming)

QuestionAsynchron Pin
greekius22-Jun-08 19:28
greekius22-Jun-08 19:28 
AnswerRe: Asynchron Pin
leppie22-Jun-08 21:13
leppie22-Jun-08 21:13 
Questionerror CS0051: Inconsistent accessibility Pin
George_George22-Jun-08 19:21
George_George22-Jun-08 19:21 
AnswerRe: error CS0051: Inconsistent accessibility Pin
Christian Graus22-Jun-08 19:32
protectorChristian Graus22-Jun-08 19:32 
GeneralRe: error CS0051: Inconsistent accessibility Pin
George_George22-Jun-08 23:16
George_George22-Jun-08 23:16 
GeneralRe: error CS0051: Inconsistent accessibility Pin
Christian Graus22-Jun-08 23:36
protectorChristian Graus22-Jun-08 23:36 
GeneralRe: error CS0051: Inconsistent accessibility Pin
George_George23-Jun-08 0:03
George_George23-Jun-08 0:03 
GeneralRe: error CS0051: Inconsistent accessibility Pin
Christian Graus23-Jun-08 0:26
protectorChristian Graus23-Jun-08 0:26 
GeneralRe: error CS0051: Inconsistent accessibility Pin
George_George23-Jun-08 1:35
George_George23-Jun-08 1:35 
GeneralRe: error CS0051: Inconsistent accessibility Pin
Christian Graus23-Jun-08 1:42
protectorChristian Graus23-Jun-08 1:42 
GeneralRe: error CS0051: Inconsistent accessibility Pin
George_George23-Jun-08 21:50
George_George23-Jun-08 21:50 
GeneralRe: error CS0051: Inconsistent accessibility Pin
Christian Graus23-Jun-08 21:52
protectorChristian Graus23-Jun-08 21:52 
GeneralRe: error CS0051: Inconsistent accessibility Pin
George_George23-Jun-08 23:18
George_George23-Jun-08 23:18 
GeneralRe: error CS0051: Inconsistent accessibility Pin
Christian Graus23-Jun-08 23:58
protectorChristian Graus23-Jun-08 23:58 
GeneralRe: error CS0051: Inconsistent accessibility Pin
George_George24-Jun-08 1:50
George_George24-Jun-08 1:50 
GeneralRe: error CS0051: Inconsistent accessibility Pin
User 665823-Jun-08 0:35
User 665823-Jun-08 0:35 
GeneralRe: error CS0051: Inconsistent accessibility Pin
George_George23-Jun-08 1:35
George_George23-Jun-08 1:35 

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.