You can create a Singleton class that haldes the DB connection, then you can open the connection on the form_load in the first form in the app.
On Thu, Mar 12, 2009 at 11:43 PM, Shanghai360 <[email protected]>wrote: > > I am building a winform app, for ease of use I integrated our vpn into > the app. However, the app has a database connection that depends on > the network/vpn connection already being established. What's the best > way to handle this? Is there a way to manually start the database > connection or have the db connection start on an event? > > Any help would be greatly appreciated. > > Thanks! > -- Att, Vinicius Quaiato
