Use as OpenConnection(ref conn)==….
This ref is not very useful too, as objects are always passed as reference. Practically, the objects pointer is here passed as reference here.
Advice…
Never ever call connection open methods in form load events. As slow connection will make the user unhappy, and may click the calling menu multiple times, creating a lot more forms.