Hi Raghu,
have a look at these:
Control..::.HandleCreated Event
Control..::.HandleDestroyed Event
Control..::.IsHandleCreated Property
Control..::.OnHandleCreated Method
Regards
Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project:
http://www.codeplex.com/restarts
Latest Open-Source Projects:
http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
<(E-Mail Removed)> schrieb im Newsbeitrag
news:35f45751-4134-4757-85c8-(E-Mail Removed)...
> Hi all,
>
> I have created lot of controls on a form
>
> what i want to do is for wait until handles are created.
>
> how can we do this??
>
> say rag=new label();
>
> i want to wait until the rag handle has been created.This is necessary
> when i restart my system since all my app will be launched as a
> windows service and i am getting expections like
>
> "Invoke or begininvoke cannot be called on a control until the window
> handle has been created".
>
> Please help me in this i want to know which are the API's used for
> this and how to do it??
>
> I want to avoid sleep
>
> thanks in advance,
> RAGHU
>