Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
Questionmulti-user winforms application Pin
An Enigma30-Sep-09 21:36
An Enigma30-Sep-09 21:36 
AnswerRe: multi-user winforms application Pin
SeMartens30-Sep-09 22:09
SeMartens30-Sep-09 22:09 
GeneralRe: multi-user winforms application Pin
Greg Chelstowski30-Sep-09 22:37
Greg Chelstowski30-Sep-09 22:37 
GeneralRe: multi-user winforms application Pin
An Enigma30-Sep-09 22:43
An Enigma30-Sep-09 22:43 
GeneralRe: multi-user winforms application Pin
Greg Chelstowski30-Sep-09 22:49
Greg Chelstowski30-Sep-09 22:49 
GeneralRe: multi-user winforms application Pin
An Enigma30-Sep-09 22:52
An Enigma30-Sep-09 22:52 
GeneralRe: multi-user winforms application Pin
J4amieC30-Sep-09 23:22
J4amieC30-Sep-09 23:22 
GeneralRe: multi-user winforms application Pin
Mycroft Holmes30-Sep-09 22:56
professionalMycroft Holmes30-Sep-09 22:56 
First up split the database connection and authentication of the application out from the authentication of the users.

Create a SQL standard login for you app. Now you application has na identity that it can use to connect to the database regardless of the user.

Create your own user table where you store all the data to authenticate you users (userid, password - encrypted, expiry date and any groups he user may belong to in your app, email, names, address, phones, etc etc)

You login form can now talk to your database (using it's own ID) and query the user table to check the userid and password, if the login is valid then pass the user to the main form.

I think there is an example login project here on CP if you search for it.



GeneralRe: multi-user winforms application Pin
An Enigma30-Sep-09 23:02
An Enigma30-Sep-09 23:02 
GeneralRe: multi-user winforms application Pin
Mycroft Holmes30-Sep-09 23:25
professionalMycroft Holmes30-Sep-09 23:25 
Questiononshutdown() problem Pin
Ajithevn30-Sep-09 20:54
Ajithevn30-Sep-09 20:54 
AnswerRe: onshutdown() problem Pin
N a v a n e e t h30-Sep-09 21:11
N a v a n e e t h30-Sep-09 21:11 
GeneralRe: onshutdown() problem Pin
Ajithevn30-Sep-09 21:25
Ajithevn30-Sep-09 21:25 
QuestionHow to view a Column Name in listbox by selecting the Column in DataGridView Pin
mumair78630-Sep-09 20:51
mumair78630-Sep-09 20:51 
AnswerRe: How to view a Column Name in listbox by selecting the Column in DataGridView Pin
Mycroft Holmes30-Sep-09 23:09
professionalMycroft Holmes30-Sep-09 23:09 
GeneralRe: How to view a Column Name in listbox by selecting the Column in DataGridView Pin
mumair7861-Oct-09 0:38
mumair7861-Oct-09 0:38 
GeneralRe: How to view a Column Name in listbox by selecting the Column in DataGridView Pin
Henry Minute1-Oct-09 1:12
Henry Minute1-Oct-09 1:12 
GeneralRe: How to view a Column Name in listbox by selecting the Column in DataGridView Pin
mumair7861-Oct-09 2:21
mumair7861-Oct-09 2:21 
QuestionFunction waiting Pin
discreetz30-Sep-09 20:40
discreetz30-Sep-09 20:40 
AnswerRe: Function waiting Pin
Paramhans Dubey30-Sep-09 20:48
professionalParamhans Dubey30-Sep-09 20:48 
GeneralRe: Function waiting Pin
discreetz30-Sep-09 21:14
discreetz30-Sep-09 21:14 
GeneralRe: Function waiting Pin
Mirko198030-Sep-09 22:05
Mirko198030-Sep-09 22:05 
GeneralRe: Function waiting Pin
discreetz30-Sep-09 22:10
discreetz30-Sep-09 22:10 
GeneralRe: Function waiting Pin
Mirko198030-Sep-09 22:19
Mirko198030-Sep-09 22:19 
GeneralRe: Function waiting Pin
discreetz30-Sep-09 22:26
discreetz30-Sep-09 22:26 

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.