문제

Is there a way that I can parse through the objects of an application and determine if each one is TypeOf a particular form object? I have found no clear way getting a reference to forms that have already been opened. Complicating this further, it appears that not all Visual Basic commands are available to me when coding for an old PocketPC device.

도움이 되었습니까?

해결책

You might want to have alook into Reflection. With this you can get all types of a NameSpace, then get all members of all class then do your compare. Since Reflection is used for bindings it might be available in your framework.
So this could be a start :

    Dim MyAssembly = Reflection.Assembly.GetExecutingAssembly
    Dim AllTypes = MyAssembly.GetTypes()
    Dim AllClass = From x In AllTypes Where x.IsClass Select x
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top