Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I want to get all form names in application and want to fill that form names in drop down list.i tried like this..

XML
List<Newlist> lst = new List<Newlist>();
           Newlist newlst = new Newlist();
           string[] filePaths = Directory.GetFiles(@"D:\appln\testappln\", "*.cs");
           newlst.Page = filePaths;
           cmbPageName.DataSource = filePaths;





but didnt get the form names...is there any idea to do this...
Posted
Comments
Mehdi Gholam 10-Apr-12 2:46am    
Which platform : WinForms, WPF, or WebForms ?

1 solution

In coomand write this ..

application root folder> dir /s *.aspx
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900