Re: Accessing controls collection of any open window through c#




However not getting any clue of how to access the object model / controls
collection using the handle. Any clues in this regard will be appreciated.

If the window if in your own appdomain you can call
Control.FromHandle. If not, you can't do what you're asking.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.



Relevant Pages

  • Re: XP Home shows lsass.exe message
    ... Restore by backing up and replacing the current Registry files ... Hope this helps you with the Acer laptop, Mattias - you might try ... (and underneatht that, in the same window) ... Ron Martell Duncan B.C. Canada ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: WndProc Message Forwarding
    ... Mattias Sjögren wrote: ... but they dont seem to be ... You can't just blindly forward window messages to another application ... If you want to fake input in another application there are other APIs ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: GAC - Context - Cache
    ... shared across all sharing applications? ... copy of the data per appdomain. ... Mattias Sjögren mattias @ mvps.org ... Please reply only to the newsgroup. ...
    (microsoft.public.dotnet.general)
  • Re: Memory Problem
    ... no. There's no such connection between an object ... Winforms keeps its form objects alive as long as the window is open. ... Mattias Sjögren mattias @ mvps.org ...
    (microsoft.public.dotnet.framework.performance)
  • Re: C# - [STAThread] Still throws expection with Clipboard
    ... The FileSystemWatcher events run on a thread from the thread pool ... unless you set its SynchronizingObject property to a window on your UI ... Mattias Sjögren mattias @ mvps.org ...
    (microsoft.public.dotnet.languages.csharp)