T
Tom Edelbrok
I've created a form on the fly at run-time as "new form". Works fine. I even
add some controls to it (ie: a label control, etc). I then use
"AddOwnedForm" to add my newly created form as an owned form of my main
application form.
Immediately after showing my new form I set "Enabled = False" for the
original application form, disabling and graying it.
However, my new form doesn't have the focus, and I can't figure out how to
give it the focus. I can click on it to get the focus, but I want it to have
the focus automatically. I've tried the "Activate" method and a variety of
other things without success.
Any idea on how to make my new form light up it's Window title bar?
(I thought of raising a click event for the form at run-time but I don't
know how to do that).
Thanks,
Tom Edelbrok
add some controls to it (ie: a label control, etc). I then use
"AddOwnedForm" to add my newly created form as an owned form of my main
application form.
Immediately after showing my new form I set "Enabled = False" for the
original application form, disabling and graying it.
However, my new form doesn't have the focus, and I can't figure out how to
give it the focus. I can click on it to get the focus, but I want it to have
the focus automatically. I've tried the "Activate" method and a variety of
other things without success.
Any idea on how to make my new form light up it's Window title bar?
(I thought of raising a click event for the form at run-time but I don't
know how to do that).
Thanks,
Tom Edelbrok