eramgarden
Well-known member
- Joined
- Mar 8, 2004
- Messages
- 579
Ok, my first C# WinForm ..
I have a menu: File --> connect to Database
So we want to connect to a database in one place, once in the beginning of the app ..Users enter the database name, userid and password...
So, how should I do this? Write a "connection" class and pass the parameters to the class? Do the connection in the code behind of the form when the user clicks "connect" button??
what is the best way of doing this?
I have a menu: File --> connect to Database
So we want to connect to a database in one place, once in the beginning of the app ..Users enter the database name, userid and password...
So, how should I do this? Write a "connection" class and pass the parameters to the class? Do the connection in the code behind of the form when the user clicks "connect" button??
what is the best way of doing this?