I would like to share the same database connection between two Forms. I would like to use the same connection to associate OleCommands that are executed in each form/class.
My main form creates my second form (a modal dialog) that I want to use to insert user input to the database.
How do I make my database connection global to be used by all classes in a given namespace? I need to associate my OleCommands with a connection. I would like this connection to be the same throughout my program.
Thank you!
My main form creates my second form (a modal dialog) that I want to use to insert user input to the database.
How do I make my database connection global to be used by all classes in a given namespace? I need to associate my OleCommands with a connection. I would like this connection to be the same throughout my program.
Thank you!