Adnan
asked on
how to disable access to form1 when form 2 is open...?!
in my runnning application when i open form2 i still have access to form1, how can i stop access to form 1 when form2 is open or running?
ASKER
but then aplication dissapears from Cntrl-Tab meny......??
if i use form2.ShowDialog(this);
if i use form2.ShowDialog(this);
Could you enable the setting ShowInTaskbar in the properties for the form?
ASKER
But i dont want to show in taskbar, i just want to not have access to form1 when form2 is open....
i attached my code which open the form2 from form1.....
i attached my code which open the form2 from form1.....
if (TestRelation())
{
StartingBalance sb = new StartingBalance(myOperator);
////set relation name in heading
sb.RelationName = currentRelationRow.Name;
sb.LeftName = lblLedger.Text;
sb.RightName = lblBank.Text;
sb.Owner = this.ParentForm;
sb.StartPosition = FormStartPosition.CenterParent;
//sb.ShowDialog();
sb.ShowDialog(this);
//sb.Show(this);
SetBtnStartingBalance();
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
form2.ShowDialog(this);