Question Call a database connection from a class

pagey

New member
Joined
May 12, 2008
Messages
4
Programming Experience
Beginner
Hi there,

I've built a small program, and need to extend it a little by adding some database functionality.

I need to create a database connection, and then insert some data from a two textboxes. I think I can figure this bit out, however, I want to put the database connection details in a separate class, and I'm not sure how I would reference this class from my form code?

So if I have two textboxes on my form, and on the click of button1, the data in the textboxes gets inserted into the database.

Any ideas?

Thanks
 
Read the DW2 link in my signature. Note that you have .NET 3.5 and it is inteded for .NET 2. You should read the most up to date parts where availabl
 
Back
Top