Hi!
How can I create a custom Form() within a component
and have it create a proper handle? Currently i can call
CreateControl but there is no effect. Should I assign a parent?
Where do I get the parent from, (hopefully without the explicit
reference to the main form).
Thanks!
Atmapuri
Ignacio Machin ( .NET/ C# MVP ) - 21 Jan 2008 15:36 GMT
Hi,
Can you be more especific, I did nt understand your question.

Signature
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
> Hi!
>
[quoted text clipped - 6 lines]
> Thanks!
> Atmapuri
Nicholas Paldino [.NET/C# MVP] - 21 Jan 2008 16:08 GMT
Atmapuri,
From the documentation for the Handle property on the Control class
(which Form derives from and does not override):
The value of the Handle property is a Windows HWND. If the handle has not
yet been created, referencing this property will force the handle to be
created.
So, just access the Handle property.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Hi!
>
[quoted text clipped - 6 lines]
> Thanks!
> Atmapuri