[EMAIL PROTECTED] wrote:
>
> >I've got some code where in a special case I want to add a button
> >at run-time if a form opens.
>
> Why don't you just always have the button there but hide it (set to not
> usable)? Then call FrmShowObject when you want to see it.
...because I want to do it across the entire app, for every
form that opens. For one form I'd agree that it's better to just
show a hidden button, but for many forms I can't justify the wasted
resources.
So if I add a button dynamically do I also need to free the
allocated memory as well when the form closes?--or will the OS
take care of it for me.
Thanks,
Daniel.