Re: How to get a reference to main form in a Windows Form 2.0 Application?
- From: Jon Shemitz <jon@xxxxxxxxxxxxxxxxx>
- Date: Fri, 25 Aug 2006 13:32:48 -0700
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.
.
- Follow-Ups:
- References:
- Prev by Date: Re: How to get a reference to main form in a Windows Form 2.0 Application?
- Next by Date: Re: How to get a reference to main form in a Windows Form 2.0 Application?
- Previous by thread: Re: How to get a reference to main form in a Windows Form 2.0 Application?
- Next by thread: Re: How to get a reference to main form in a Windows Form 2.0 Application?
- Index(es):
Relevant Pages
|