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

Samirbhogayta
Posted by Samirbhogayta under ASP.NET category on | Points: 40 | Views : 1829
//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();
}

Comments or Responses

Posted by: Raj_Chennai on: 11/14/2013 Level:Starter | Status: [Member] | Points: 10
use get set property to pass value from one page to another

Login to post response