Click here to Skip to main content
16,004,969 members
Home / Discussions / C#
   

C#

 
GeneralRe: one more somewhat dumb question... Pin
l a u r e n3-Feb-09 7:20
l a u r e n3-Feb-09 7:20 
AnswerRe: one more somewhat dumb question... Pin
humayunlalzad3-Feb-09 5:57
humayunlalzad3-Feb-09 5:57 
AnswerRe: one more somewhat dumb question... [modified] Pin
Luc Pattyn3-Feb-09 6:03
sitebuilderLuc Pattyn3-Feb-09 6:03 
GeneralRe: one more somewhat dumb question... Pin
l a u r e n3-Feb-09 6:46
l a u r e n3-Feb-09 6:46 
Questiondata connections and forms / apps Pin
l a u r e n3-Feb-09 4:58
l a u r e n3-Feb-09 4:58 
AnswerRe: data connections and forms / apps Pin
Rob Philpott3-Feb-09 5:06
Rob Philpott3-Feb-09 5:06 
GeneralRe: data connections and forms / apps Pin
l a u r e n3-Feb-09 5:11
l a u r e n3-Feb-09 5:11 
GeneralRe: data connections and forms / apps Pin
Rob Philpott3-Feb-09 5:30
Rob Philpott3-Feb-09 5:30 
Well, I'd be inclined to create a seperate project in your solution which provides class(es) which do the data access stuff. This project would reference System.Data, System.Data.SqlClient etc.

Your form code would reference this project and would not have any references to System.Data. This way, you seperate presentation from data acccess. This way if you change one data access function you only need to do it in one place and not in different forms etc.

The next 'step' would be to have some sort of client server architecture where the forms apps would talk to a server which in turn would forward the class on to the database, but this may be heavy-handed for what you want to do.

Regards,
Rob Philpott.

GeneralRe: data connections and forms / apps Pin
l a u r e n3-Feb-09 7:21
l a u r e n3-Feb-09 7:21 
GeneralRe: data connections and forms / apps Pin
Rob Philpott3-Feb-09 7:40
Rob Philpott3-Feb-09 7:40 
AnswerRe: data connections and forms / apps Pin
Le centriste3-Feb-09 5:21
Le centriste3-Feb-09 5:21 
GeneralRe: data connections and forms / apps Pin
l a u r e n3-Feb-09 5:22
l a u r e n3-Feb-09 5:22 
Questionchanging button status Pin
R.Dubé3-Feb-09 4:48
R.Dubé3-Feb-09 4:48 
AnswerRe: changing button status Pin
l a u r e n3-Feb-09 5:00
l a u r e n3-Feb-09 5:00 
GeneralRe: changing button status Pin
R.Dubé3-Feb-09 5:23
R.Dubé3-Feb-09 5:23 
GeneralRe: changing button status Pin
EliottA3-Feb-09 5:25
EliottA3-Feb-09 5:25 
AnswerRe: changing button status [modified] Pin
EliottA3-Feb-09 5:24
EliottA3-Feb-09 5:24 
GeneralRe: changing button status Pin
R.Dubé3-Feb-09 6:13
R.Dubé3-Feb-09 6:13 
GeneralRe: changing button status Pin
EliottA3-Feb-09 6:16
EliottA3-Feb-09 6:16 
GeneralRe: changing button status Pin
R.Dubé3-Feb-09 6:27
R.Dubé3-Feb-09 6:27 
QuestionRotate rectangle with mouse move events... Pin
priyareguri3-Feb-09 4:42
priyareguri3-Feb-09 4:42 
AnswerRe: Rotate rectangle with mouse move events... Pin
EliottA3-Feb-09 4:45
EliottA3-Feb-09 4:45 
GeneralRe: Rotate rectangle with mouse move events... Pin
priyareguri3-Feb-09 4:58
priyareguri3-Feb-09 4:58 
GeneralRe: Rotate rectangle with mouse move events... Pin
l a u r e n3-Feb-09 5:01
l a u r e n3-Feb-09 5:01 
GeneralRe: Rotate rectangle with mouse move events... Pin
musefan3-Feb-09 5:22
musefan3-Feb-09 5:22 

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.