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



Jon

I had been expecting something like Delphi has in VCL but this is valid too.
Thanks

JL

--
Lic. Jorge Luis De Armas García
Chief Software Architect
DATYS Tecnología y Sistemas
email: jldearmas@xxxxxxxxxxx
jldearmas@xxxxxxxxx
jldearmas@xxxxxxxxx
jldearmas@xxxxxxxxxxx


"Jon Shemitz" <jon@xxxxxxxxxxxxxxxxx> escribió en el mensaje
news:44EF5E70.CD975410@xxxxxxxxxxxxxxxxxxxx
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.


.