
Dynamic Controls Creation and Referencing the new Control.
Hi,
I am creating a application, which has some questions and options to those
questions stored in a database.
I provide to the user a method of adding a new question or option for a
question. I am trying to let the user modify the a question's option, by
dynamically creating the question, and the associated options, with a
VB.OptionButton in front of the option's text which is displayed.
Now, I would like to have it so that when a option is clicked, the text
values for the option are displayed in a text box, which can be modified,
and then the user saves the changes.
However, since you cannot create an array of WITHEVENTS, or create an array
of objects dynamically, I don't see any solution at the current moment. I
have even tried to capture the msg that is sent to the window (through API),
but there is none, even though when I click on an option with no WITHEVENTS
value, the value of the option can toggle, i.e. setting it to true and
false.
Any help would be grateful.
Joey
PS. I can send you my code, if that would be more helpful.