I'm trying to find some help in the ways of "Initializing" A module/Variable inside the module on an event.
I need it to load, in order for the following WinForm to use it (apparently) Let me explain...
I am using the WinSCP library and gotten plenty of help in the ways of WinSCP by the author himself. But in order to fix my current problem, I need to Initialize a Global Variable. So the Variable is there, its in order, but "Form2" refuses to use it, as it apparently needs to be Started/Initialized from an event in Form1. Module is called Public Module Module 1.
Public Module Module1
Public mySession As Session
End Module
I need to Launch/Start it on this Event;
Private Sub Loginbutton_Click(sender As Object, e As EventArgs) Handles Loginbutton.Click
WinSCP Author was unable to help as it was outside WinSCP alone, and just .Net/VB issue. I've gotten so much excellent help here on Stackoverflow so I know someone here will be able to help.
It might be some easy thing I have overlooked and forgotten. My head is hurting at this time, so any help, code samples and other forms of help is greatly appreciated as my head is slightly hurting of all this Visual Studio stuff.