v-jetan
Mon May 23 21:48:50 CDT 2005
Hi sp25,
Thanks for your feedback.
In your scenario, if you want to view an existed winform control's
property, this is a cross-process issue, which requests legacy win32 hook
technologies. I think the first article provided by "Herfried K. Wagner
[MVP]" pointed out the most important steps: injecting assembly into
another process.
A simple Windows forms properties spy
<URL:
http://www.codeproject.com/dotnet/wfspy.asp>
Once we has injected the assembly in the being spyed winform application
process, we can enumerate all the windows(controls) in that process, then
we can compare each enumerated control's Name property with our held name
string. Once they are the same, we should have got the control we want.
The reason why the application in the above link does not show out the
"Name" property is that the PropertyGrid control does not show out this
property. Currently, I am not sure why the PropertyGrid control does not
show out the Name property, however, I think it will not break out
programming logic.
Hope this helps
=============================================
Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.