A
adodotnet20
I'm developing a Windows application and I'm having some problems in
making variable accessible to the whole application. I use VS.NET 2005
and I create a database connection object in the method private void
connect_Click(object sender, EventArgs e). That object I create seems
to be accessible only within that method, how do I make it accessible
to the whole application, just like I have access to mytextbox.text
throughout my tabbed form? Where do you keep your connection object
usually?
Thank you.
making variable accessible to the whole application. I use VS.NET 2005
and I create a database connection object in the method private void
connect_Click(object sender, EventArgs e). That object I create seems
to be accessible only within that method, how do I make it accessible
to the whole application, just like I have access to mytextbox.text
throughout my tabbed form? Where do you keep your connection object
usually?
Thank you.