[quoted text, click to view] Joe wrote:
> I like the program to be called by the taskmanager. Onces it called, it
> will do something. And then exit. Of course I like to see the UI while its
[The program called by task manager doesn't exit right away unless you
close it, it seems pretty confusing to me . I know you want to hoop up
some events like Form_PostUnload().]
[quoted text, click to view] > doing the tasks.
>
>
> "Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote in
> message news:%23qIbZvfKGHA.2300@TK2MSFTNGP15.phx.gbl...
>> Joe,
>>
>> I'm kind of confused why you want to exit the form right after it
>> loads.
>> What are you trying to do?
>>
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - mvp@spam.guard.caspershouse.com
>>
>> "Joe" <johntyung@yahoo.com> wrote in message
>> news:%23N%23gJnfKGHA.964@tk2msftngp13.phx.gbl...
>>> Is there another Form1_Load function?
>>>
>>> I need to call a function to exit but I want to have it called right
>>> after
>>> the User interface have been loaded and appeared on screen. Right now
>>> the
>>> Load function doesn't load the User interface to be viewable and the code
>>> I
>>> call the exit function in the load function doesn't really help in my
>>> cause.
>>>
>>> I like to call exit right after the form has been loaded, is there such a
>>> function?
>>>
>>>
>>
>
[quoted text, click to view] Joe <johntyung@yahoo.com> wrote:
> I like the program to be called by the taskmanager. Onces it called, it
> will do something. And then exit. Of course I like to see the UI while its
> doing the tasks.
It sounds like you should be creating a new thread when the app is
loaded, updating the UI in a thread-safe way using
Control.Invoke/BeginInvoke, and then exiting the application
afterwards.
--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet