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
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