How to access a control in another c# applications?
Is there a way to let me get the tag attribute of one TreeNode object in another c# application?
It is easy to get the handle of the T开发者_运维百科reeNode, but how to continue?
Thanks
No, without cooperation from the Application with the TreeView it is not possible.
The Tag property is part of the managed class that is attached to the TreeNode-control. You can only get at the Win32 part of the control when you have the handle. The managed part is in an address-space where you have no access.
Expose a WCF service or a remoting service from one application, if possible.
精彩评论