i have opened more than 2 forms. and i wnt the name of active form among them.. i used the following code, bt its not working...plz help me...
{
if (Application.OpenForms[iCnt].Focused == true)
{
sForm_name = Application.OpenForms[iCnt].Name;
break;
}
}
thanks in advance...............

Abhimanyu K VatsaRank #14 · 51.7K reputationPosted May 7, 2011, 1:52 AM EDT
Soumya Surendran84 reputationPosted May 7, 2011, 3:01 AM EDT
VulpesRank #55 · 29.2K reputationPosted May 7, 2011, 4:02 AM EDT
Mahesh ChandRank #1 · 393.3K reputationPosted May 7, 2011, 5:13 AM EDT
string activeFormName =Form.ActiveForm.Name;