I searched all over the forums and still didn't find a neat way to do this :)
Shortly:
Is it possible to loop through all design time created (form) classes?
I do not mean form objects but the classes. I do not need to detect if the form class has a visible object or anything, just wanna create a new instance of every form class I created design time.
i.e. something like this (of course this does not work :eek: )
Dim frm As Form
For Each SomeType In MyProject.Typecollection
If SomeType Is form then
frm = New SomeType
DumpFormContentsToFile(frm, "c:\" & frm.name & "_dump.txt")
frm.close
endif
Next
msgbox "Contents of all forms were dumped to C:\"
The reason for this is that I want to be able to dynamically 'dump' all the Texts inside form to a custom formatted text file, for multilingual translator class. I think i found a neat way to make my app multilingual, without messing up the desing time view or making any changes during design time. =)
Thanks mates. For sure I will post the class here if I get it done someday.
edit: vbulleting messing up my smilies