G
Guest
Hi, a simple question.
Say I have a connection object in a button event handler. I want to add a
message box that pops up to say the state of the connection has changed
whenever I open the connection by pressing the button in which the instance
of the connection object resides. I use the event handler below to do this:
sqlCon.StateChange+=new StateChangeEventHandler(methodToHandleThis);
My question is where to put this piece of code?
Thanks for any answers in advance
Ant
Say I have a connection object in a button event handler. I want to add a
message box that pops up to say the state of the connection has changed
whenever I open the connection by pressing the button in which the instance
of the connection object resides. I use the event handler below to do this:
sqlCon.StateChange+=new StateChangeEventHandler(methodToHandleThis);
My question is where to put this piece of code?
Thanks for any answers in advance
Ant