2
Answers

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

Rahul Krishnan R

Rahul Krishnan R

12y
2.4k
1

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)