>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.
The benefits are:
1) You don't have to understand the gory details of buttons
2) It's less code (one line)!
3) It will probably work in the future (and in this case the past)
Folks, be careful with the routines which create UI on the fly. Most of
the time it's the wrong solution. Usually showing hidden UI is much
better.
-Roger Flores