Rajesh, I wonder if you got answers regarding your posted question.
I've got a similar problem trying to add a editbox to any active form dynamically (not knowing the form object name) from a .prg, I am trying not having to create a class added to every existing forms.
I posted my question today, I got a suggestion from Michelle Cox, but that is not what I wanted.
If you are interested, you can read my thread (Thread#
384084).
If you got your answer, I sure appreciate if you would share it with me.
Thanks!
David