Thursday, July 7, 2011

How to Read the Windows Form Names in c#

List GetFormNameList = new List();
Assembly asb = Assembly.GetExecutingAssembly();
foreach (Type type in asb.GetTypes())
{
if (type.BaseType.FullName.Equals("Common.UI.frmVirtual"))
{
GetFormNameList.Add(type.Name.ToString());
}
}

No comments:

Post a Comment