D
Daniel Sélen Secches
Hi all....
I have a frmMain and a form2.
form2 has a var named conn for exemple....
public conn as string
from frmMain i can do this...
dim f as new form2
f.conn = "blblbl"
f.showdialog
but i want to do the opposite, from the form2 access the frmMain....
i've tried to do like this..
frmMain:
public connstring as string....
and from form2 use that Connstring to open a connection
form2:
cmd.connection = frmMain.connstring
but i couldn't.
I'm trying to do it to centralize the conn string of my application, so if i
have to change the connection i'd change in only one place.
Tks....
I have a frmMain and a form2.
form2 has a var named conn for exemple....
public conn as string
from frmMain i can do this...
dim f as new form2
f.conn = "blblbl"
f.showdialog
but i want to do the opposite, from the form2 access the frmMain....
i've tried to do like this..
frmMain:
public connstring as string....
and from form2 use that Connstring to open a connection
form2:
cmd.connection = frmMain.connstring
but i couldn't.
I'm trying to do it to centralize the conn string of my application, so if i
have to change the connection i'd change in only one place.
Tks....