SameSpade,
In addition to Armin's comments.
Using Shared members of classes promotes encapsulation. In that you know
exactly where that Shared member is coming from.
For example:
Public Module SampleModule
Public Shared Function ActiveConnection As SqlConnection
End Function
End Module
Public Class SampleClass
Public Shared Function ActiveConnection As SqlConnection
End Function
End Class
You can use SampleModule.ActiveConnection without qualifying the name with
SampleModule. When you drop SampleModule, you are not certain where the
identifier is coming from.
However with SampleClass.ActiveConnection, you have to qualify the name,
ensuring that you know exactly where ActiveConnection is coming from.
As Armin suggested, you can import the SampleClass itself, allowing you to
use ActiveConnection unqualified. I normally reserve importing classes for
truly global functions, such as System.Math.
Hope this helps
Jay