C# window application : How to pass the value from one page to another

Posted by SAMIR BHOGAYTA on Samir ASP.NET with C# Technology See other posts from Samir ASP.NET with C# Technology or by SAMIR BHOGAYTA
Published on 2010-02-03T20:07:00.001-08:00 Indexed on 2010/12/06 17:00 UTC
Read the original article Hit count: 305

//In Mdi Form
//Declare the variable, which you want to pass

string userid;
string password;

FormName obj = new FormName(userid,password);
obj.MdiParent = this;
obj.Show();

//In Other Form
//Declare the variable, which you want to pass

string userid;
string password;

public FormName(string uid1,string psw)
{
userid = uid1;
password = psw;
InitializeComponent();
}


© Samir ASP.NET with C# Technology or respective owner

Related posts about C# window application : H