call a conn. string
-
-
hi what just i want to know : a connection string is already in the connection class and tested. i am adding a combo box in a new form ..... how i can call or create a new instance to call the connection string before i write myConn.open regards
What do you want to do exactly ? What connection class ? What does the combo box do ? You can't call a string.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
What do you want to do exactly ? What connection class ? What does the combo box do ? You can't call a string.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
the idaea is i want to fill the combo box data from the database( sql 2000) i am working in c# the connection string exist in a class how i can open the connection from the form?
OK, now it's starting to make sense. The reason to have the conection string in a class, is for that class to be part of the data layer. It should therefore expose methods to get the data you need, which can then be called to set the datasource of the combo box.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )