Re: How to get a reference to main form in a Windows Form 2.0 Application?



Jon Shemitz wrote:

I just spent a few minutes trying to answer this - and it may not be
possible.

I spoke too soon - forgot to Google!

Form MainForm =
(Form)Control.FromHandle(Process.GetCurrentProcess().MainWindowHandle);



--

..NET 2.0 for Delphi Programmers www.midnightbeach.com/.net
Delphi skills make .NET easy to learn In print, in stores.
.



Relevant Pages

  • Re: Correction
    ... Delphi skills make .NET easy to learn In print, in stores. ...
    (microsoft.public.dotnet.general)
  • Re: Asynchronous calls in C#
    ... You can try my Asynchronous Delegates article at ... Delphi skills make .NET easy to learn ... Being printed - in stores by June ...
    (microsoft.public.dotnet.faqs)
  • Re: Reflection and Nullables
    ... Very clever! ... Delphi skills make .NET easy to learn In print, in stores. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Borland update policy
    ... Or selling more copies. ... Delphi skills make .NET easy to learn ... Being printed - in stores by June ...
    (borland.public.delphi.non-technical)
  • Re: Charlie Calvert Joins Microsoft
    ... People at the Anders Hejlsberg level are not particularly common. ... Delphi skills make .NET easy to learn In print, ...
    (borland.public.delphi.non-technical)