G
Guest
We are looking to converting our old vb 6.0 apps to vb.net. In vb6 you
could create a standard set of forms or modules that you could share with
each application. As a result, lets say you opened up one application and
changed something in a module shared throughout multiple apps. The next time
you opened another app the changes would be there and you wouldn't have to
reimport anything. However, this doesn't seem to be the case in .net. It
seems that you have to reimport any changes etc. First, does anyone know how
to do what I am describing in .net?
Second, someone told me a better approach was to use class libraries. Ok,
I'm new to creating class libraries and I am sure there is something I
probably don't know/understand. I started by creating a class library
project. I inserted the following code
public class test1
Dim myConn As New SqlClient.SqlConnection
Dim cmd As New SqlClient.SqlCommand
myconn.connectionstring="somestring"
end class
When I try to say myConn.connectionString="somestring" I get an error that
says declaration expected. What am I doing wrong/don't understand?
Thanks
could create a standard set of forms or modules that you could share with
each application. As a result, lets say you opened up one application and
changed something in a module shared throughout multiple apps. The next time
you opened another app the changes would be there and you wouldn't have to
reimport anything. However, this doesn't seem to be the case in .net. It
seems that you have to reimport any changes etc. First, does anyone know how
to do what I am describing in .net?
Second, someone told me a better approach was to use class libraries. Ok,
I'm new to creating class libraries and I am sure there is something I
probably don't know/understand. I started by creating a class library
project. I inserted the following code
public class test1
Dim myConn As New SqlClient.SqlConnection
Dim cmd As New SqlClient.SqlCommand
myconn.connectionstring="somestring"
end class
When I try to say myConn.connectionString="somestring" I get an error that
says declaration expected. What am I doing wrong/don't understand?
Thanks