Collecting Forms from phisical path!
-
hello 4 all, how can i create an object from " phisical Form files " at run time! m asking becouse i want to insert into DB all buttons name in all forms in som Directory! and if i couldnt is there any way to include\execlude Forms from aproject programaticly? :confused: any suggestions would be highly welcomed!!!! :doh:
-
hello 4 all, how can i create an object from " phisical Form files " at run time! m asking becouse i want to insert into DB all buttons name in all forms in som Directory! and if i couldnt is there any way to include\execlude Forms from aproject programaticly? :confused: any suggestions would be highly welcomed!!!! :doh:
mrcooll wrote:
how can i create an object from " phisical Form files " at run time!
What kind form? :confused:
-
mrcooll wrote:
how can i create an object from " phisical Form files " at run time!
What kind form? :confused:
-
hello 4 all, how can i create an object from " phisical Form files " at run time! m asking becouse i want to insert into DB all buttons name in all forms in som Directory! and if i couldnt is there any way to include\execlude Forms from aproject programaticly? :confused: any suggestions would be highly welcomed!!!! :doh:
mrcooll wrote:
how can i create an object from " phisical Form files " at run time!
You dont have physical forms on your disk once you build and deploy the application.
-
mrcooll wrote:
how can i create an object from " phisical Form files " at run time!
You dont have physical forms on your disk once you build and deploy the application.
hi, and thank u for trying to help me, m devloping an application that collect information "Forms, Controls,etc... " about other application before deploying it. which means that i have the whole project files that m collecting its information. private void GenerateNodes(DirectoryInfo dinfo) { //here i got all of the form names and its files FileInfo[] files = dinfo.GetFiles("*.resx",SearchOption.AllDirectories); //or FileInfo[] files = dinfo.GetFiles "*.AnyFormExtintion",SearchOption.AllDirectories); //or FileInfo[] files = dinfo.GetFiles("*.cs",SearchOption.AllDirectories); //or FileInfo[] files = dinfo.GetFiles("*.vb",SearchOption.AllDirectories); } What i need is a way to create an object from these forms to iterat over its controls. Thx.
-
hello 4 all, how can i create an object from " phisical Form files " at run time! m asking becouse i want to insert into DB all buttons name in all forms in som Directory! and if i couldnt is there any way to include\execlude Forms from aproject programaticly? :confused: any suggestions would be highly welcomed!!!! :doh:
You cant create a form file from scratch at run time. What you can do is manually create controls on an form by calling the constructors of each control dynamically. You'll have to do all the setup that is normally done at design time manually. Look at what the constructor does behind the scenes to create each control on your existing forms.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall
-
hi, and thank u for trying to help me, m devloping an application that collect information "Forms, Controls,etc... " about other application before deploying it. which means that i have the whole project files that m collecting its information. private void GenerateNodes(DirectoryInfo dinfo) { //here i got all of the form names and its files FileInfo[] files = dinfo.GetFiles("*.resx",SearchOption.AllDirectories); //or FileInfo[] files = dinfo.GetFiles "*.AnyFormExtintion",SearchOption.AllDirectories); //or FileInfo[] files = dinfo.GetFiles("*.cs",SearchOption.AllDirectories); //or FileInfo[] files = dinfo.GetFiles("*.vb",SearchOption.AllDirectories); } What i need is a way to create an object from these forms to iterat over its controls. Thx.