G
Guest
Hi,
I'm writing a client-server winfroms application, I've notice that every
time I use the wizard to create a bound datagrid, I create a new
sqlconnection.
I wish to create one connection in the main form, and use it in the rest.
(b/c changing something in the connection string - like pwd user or db will
make me go over all the classes now, and find all the connections the wizards
creatred)
what is the best way to do it ?
Regards,
Dani
I'm writing a client-server winfroms application, I've notice that every
time I use the wizard to create a bound datagrid, I create a new
sqlconnection.
I wish to create one connection in the main form, and use it in the rest.
(b/c changing something in the connection string - like pwd user or db will
make me go over all the classes now, and find all the connections the wizards
creatred)
what is the best way to do it ?
Regards,
Dani