Form2.cs
private void button1_Click(object sender, EventArgs e)
{
FindMapper fm = new FindMapper();
string uname=textBox1.Text;
int a = fm.Findfunction(uname);
if (a == 0)
{
MessageBox.Show("Success");
}
else if(a==1)
{
MessageBox.Show("Failure");
}
}
if its success if(a==0) in case
I need to redirect to form1 and uname should be copied to Tabcontrol of form1
*In form1,I has Tabcontrol which has 2 Tabpages-Contacts and Conversation
In tabpages.selectedtab ( Contacts) ,I need to display uname of form2