|
pass form2 to form1
form2
private void button_Click (object sender, EventArgs e)
{
Form1 frm = new Form1 (false, currentID);
frm.ShowDialog ();
}
form1
bool modType;
int currentNo;
public Form1 (bool mType, int cNo)
{
InitializeComponent ();
modType = mType;
currentNo = cNo;
}
private void Form1_Load (object sender, EventArgs e)
{
textbox1.text = modType.toString ();
} |
|