In my application i have a mainform which is the MDIPARENT of all other forms of my application on login by default this form is opened and from menustrip in this form we are navigating to other forms
itsis like
public partial class MainMenuForm : Form
{
public MainMenuForm()
{
InitializeComponent();
this.WindowState = FormWindowState.Maximized;
}
private void humanResourceToolStripMenuItem_Click(object sender, EventArgs e)
{
HumanResourceForm humanresourceform = new HumanResourceForm();
humanresourceform.MdiParent = this;
humanresourceform.Show();
}
}
inside the humanresourceform i had a button which will navigate to anotherform say employetransferform
private void button1_Click(object sender, EventArgs e)
{
Administraror.Humanresource.EmployetransferForm emptranfrm = new Administraror.Humanresource.EmployetransferForm();
emptranfrm.ShowDialog();
}
Now my problem is Inside the emplyeetransferform I want to get some values from the controls of Humanresources
also the user should not be allowed to close the humanresourceform when the employee trnsfer form is open or active
I also want to get the textproperty of a textbox of humanresource in emplyeetransferform like
public partial class EmpLoctnChangeForm : Form
{
public EmpLoctnChangeForm( )
{
InitializeComponent();
}
private void EmpLoctnChangeForm_Load(object sender, EventArgs e)
{
intemppk= humanresourceform.txtpk.text;
}
}
expecting some nice advice from all Thanks in advance