有没有办法在应用程序中查找对象?
有没有一种方法可以解析应用程序的对象并确定每个对象是否是 TypeOf 特定的表单对象?我没有找到明确的方法来引用已打开的表单。使问题进一步复杂化的是,在为旧的 PocketPC 设备编码时,似乎并非所有 Visual Basic 命令都可用。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想了解一下 Reflection。有了这个,您可以获取名称空间的所有类型,然后获取所有类的所有成员,然后进行比较。由于反射用于绑定,因此它可能在您的框架中可用。
所以这可能是一个开始:
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 :