G
Guest
Hi,
I've created an SQLConnection by dragging a DataAdapter onto the form. The
connection was named sqlConnection1.
When I try to reference this connection in code from another class, I cannot
find it. Intellisense only finds the classe SQLConnection. This must be a
scope issue.
How can I reference the forms connection object from code? Do I need to
create another connection in the class, or pass it to the class, or is there
a way of directly referencing it?
Many thanks for your advice in advance.
Ant
I've created an SQLConnection by dragging a DataAdapter onto the form. The
connection was named sqlConnection1.
When I try to reference this connection in code from another class, I cannot
find it. Intellisense only finds the classe SQLConnection. This must be a
scope issue.
How can I reference the forms connection object from code? Do I need to
create another connection in the class, or pass it to the class, or is there
a way of directly referencing it?
Many thanks for your advice in advance.
Ant