V
victorsc.cheng
Hi guys,
I'm new to programming with MS Word, I was wondering if anybody could
give me a hand. Here's what I'm trying to do:
I'm trying to create a tool such that when a user activates it, a
control text box and command button will appear. The user will then
type text within the text box and when they click the button that was
created when the user activated the tool, this text will be used to do
certain things and so on.... The user would have the choice of creating
as many copies of these textbox and buttons and deleting them as they
desire.
My biggest problem right now is trying to define the events of a
textbox and commandbutton that was generated at run time by the user.
Generally, events are specified by the developer but now, the
textbox/buttons don't even exist until the user creates it. I read an
article on msdn.com (http://support.microsoft.com/?kbid=246299) and
they suggest dynamically generating events at runtime, but I worry that
this will cause overall instability in my program. Furthermore, what
would I do if the user decides to remove a textbox and button? How will
I remove its corresponding events as well?
Please correct me if any of my terminolgy is incorrect. I'm still quite
new to this field, any comments and suggestions are greatly
appreicated! Thanks a lot!
Victor
I'm new to programming with MS Word, I was wondering if anybody could
give me a hand. Here's what I'm trying to do:
I'm trying to create a tool such that when a user activates it, a
control text box and command button will appear. The user will then
type text within the text box and when they click the button that was
created when the user activated the tool, this text will be used to do
certain things and so on.... The user would have the choice of creating
as many copies of these textbox and buttons and deleting them as they
desire.
My biggest problem right now is trying to define the events of a
textbox and commandbutton that was generated at run time by the user.
Generally, events are specified by the developer but now, the
textbox/buttons don't even exist until the user creates it. I read an
article on msdn.com (http://support.microsoft.com/?kbid=246299) and
they suggest dynamically generating events at runtime, but I worry that
this will cause overall instability in my program. Furthermore, what
would I do if the user decides to remove a textbox and button? How will
I remove its corresponding events as well?
Please correct me if any of my terminolgy is incorrect. I'm still quite
new to this field, any comments and suggestions are greatly
appreicated! Thanks a lot!
Victor