Hi Bruce,
Sorry for disturbing your lunch, it's still a little bit unclear for me.
First, am I right, that Refresh() fires automatically, then Form Activates the first time? I'm not sure, it's true. I will test it, if you don't know the answer.
Second, suppose it's true and I don't need to Refresh my Form in Activate, if it Activates the first time. Therefore, I can add one additional property to our Base form class, like ActivationCount and in Activate will increment this property and therefore refresh only if ActivationCount>1. Am I right?
Or may be it refreshes() automatically each time, when Form Activates, but I doubt. Otherwise, why it's a good practice to put this.Refresh() in Page.Activate()?
>>
>>In our base form class in Activate method we have thisform.refresh(). It seems to me, that form refreshes automatically then activates the first time. Is it true? May be we don't need to have this code in Form.Activate or it should be conditional? How can I prevent form of Refreshing twice at once?
>
>Yes, conditionally makes sense, based on a property set on form loading in the Activate (where else? :) Usually, I don't need a Refresh when re-activating a form, but sure, there may be occasions when one does.
If it's not broken, fix it until it is.
My Blog