Bryan, Unfortunately, the slow running code in the Activated handler, is
acquiring data to be displayed on the form, so I must wait for the data
acquisition code to complete. I thought about running the code on another
thread, but I still must defer visibility of the form.
"Bryan Phillips" <(E-Mail Removed)> wrote in
message news:u77QzUg$(E-Mail Removed)...
> What operations are you running in the Activated event handler? Can you
> run them on another thread?
>
> Bryan Phillips
> MCSD, MCDBA, MCSE
> Blog: http://bphillips76.spaces.live.com
>
>
>
>
> "RJ" <(E-Mail Removed)> wrote in message
> news:#nvZd#f$(E-Mail Removed):
>
>> I want to have the entire form remain invisible until after all the code
>> in
>> the Activated event handler has executed. The current behaviour - the
>> form
>> appears to "freeze" before completely being painted, then hesitates a few
>> seconds before completely painting.
>> In my testing, I simulate the form paint problem in a normal SDI form. I
>> tried setting the .SetVisibleCore property, but this resulted in an
>> "activation loop". That is, the activated event handler calls
>> SetVisibleCore, SetVisibleCore raises the activated event. Any ideas?
>>
>> Thanks,
>> RJ
>