R
RD
My application contains several Classes & Forms .
From the Login form I will get the User ID and Password for the
SqlConnection.
I established the connection through another class and I can get it in the
Login form.
In another form , say Employee form , I want to save the Employee details
to the Employee table. But when I tried to use connection which is already
opened I couldn't get it.
Then I tried to make the User Id and Password available to all classes and
forms in the project.
That way I can close and reopen it whereever I want in the application.
Anyway I am not able
to do it.
Please help me.
Thanks
RD
From the Login form I will get the User ID and Password for the
SqlConnection.
I established the connection through another class and I can get it in the
Login form.
In another form , say Employee form , I want to save the Employee details
to the Employee table. But when I tried to use connection which is already
opened I couldn't get it.
Then I tried to make the User Id and Password available to all classes and
forms in the project.
That way I can close and reopen it whereever I want in the application.
Anyway I am not able
to do it.
Please help me.
Thanks
RD