G
Guest
Hi,
In Visual Basic there are modules where I can store public variables, Constants, etc.
I have in a C# program a class that have a method to open a form.
public void GUIGestaoAcessos(string sDBUser, string sDBPassw, string sDBDsn)
{
Form oform=new FrmSeguranca();
oform.Show(); //He will connect to DB using the method parameters...
}
How can I pass the method parameters (string sDBUser, string sDBPassw, string sDBDsn) into the form so that He can use them...
Thanks for your help,
Bernardo
In Visual Basic there are modules where I can store public variables, Constants, etc.
I have in a C# program a class that have a method to open a form.
public void GUIGestaoAcessos(string sDBUser, string sDBPassw, string sDBDsn)
{
Form oform=new FrmSeguranca();
oform.Show(); //He will connect to DB using the method parameters...
}
How can I pass the method parameters (string sDBUser, string sDBPassw, string sDBDsn) into the form so that He can use them...
Thanks for your help,
Bernardo