this my following code not returning all forms name......plz help me..
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Telerik.WinControls;
using System.Collections.Specialized;
using System.Data.SqlClient;
using System.Reflection;//to fetch all forms of the current project
private void fillForm2()
{
Type[] AllTypesInProjects = Assembly.GetExecutingAssembly().GetTypes();
foreach (Type f in AllTypesInProjects)
{
if (f.BaseType == typeof(Form) || f.BaseType == typeof(Telerik.WinControls.UI.RadForm))
{
Form fname = (Form)Activator.CreateInstance(f);
string FormText = fname.Text;
listbx_form.Items.Add(FormText);
}
}
}