I got. I will assign one string value. pass the Value to second form.
Form2.cs
private void Form2_Load(object sender, EventArgs e)
{
this.MaximizeBox = false;
int id=AddEmployee.id;
if (id==1)
{
//Our Funciton
}
else
{
//Our funciton
}
}
Form1.cs
private void btnAddtask_Click(object sender, EventArgs e)
{
id = 1;
this.Hide();
Form2 emp = new Form2();
emp.Show();
}