Strongly typed datasets in windows forms

  • Thread starter Thread starter Nick Caramello
  • Start date Start date
N

Nick Caramello

I am having some difficulty with what would seem to be a very
straightforward problem

I have two forms, each with a strongly typed dataset. I want to have one
connection object shared between the forms (two reasons: they share the main
thread so they dont need two connections, and it is easier from an
administative point of view).

I have created a class that contains the declaration of the connection,
which I intend to associate with the data adapters. I cannot do this
through the IDE - I can only reference connections that are on the form
itself - this seems crazy.


Any ideas
 
Hi Nick,

You might prefer to share only connection string and create connections on
demend.
In either way you would have to code a bit (no designer support).
 
Back
Top