How to create a connection to a SQL database in a class and use the connection on a button event in another form.

Dec 21 2012 10:49 AM

Hi guys,

I am a beginner in C#. I want to create a class which will give a connection to my  SQL database and I want to use this connection on a button event in another form.How can I accomplish this? Please help me out.

Thanks in advance


Answers (2)