Dynamic Controls Creation and Referencing the new Control. 
Author Message
 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.



Mon, 05 May 2003 03:00:00 GMT  
 Dynamic Controls Creation and Referencing the new Control.
Why can't you use a conventional control array?

Rob

Quote:

> 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.



Tue, 06 May 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Dynamic Control Creation, Controls object has no .Add ???

2. Dynamic creation of web controls in VB.NET

3. Dynamic Control Creation - Expand Form?

4. Dynamic Creation of Controls

5. Dynamic control creation

6. Dynamic control creation and calling DOS programs from VB.

7. dynamic creation of controls?

8. VB6-Dynamic Control Creation

9. Dynamic control creation-HOW???

10. Dynamic creation of Control Array on a SSTab

11. Dynamic creation of Controls

12. Dynamic control creation?

 

 
Powered by phpBB® Forum Software