Re: finding opened window based on its handle ( C# )

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Niki Estner (niki.estner_at_cube.net)
Date: 05/24/04


Date: Mon, 24 May 2004 23:02:45 +0200

Use Control.FromHandle.

Niki

"Daniel H." <anonymous@discussions.microsoft.com> wrote in
news:4C3DA720-6709-4B4D-B23F-44C37E625E5C@microsoft.com...
> Hi! When I create a new form programatically, I can save its handle in a
collection of some type.
> Later, I need to find that form based on a handle I saved and call one of
its functions. The newly created
> form can be a child of an MDI form but it very well may not be, so I can
not use MDIChildren.
>
> I am wandering how it can be done in C#, please?
>
> Thank you in advance,
>
> Dany