Dinamically modifying a form

P

Pablo Cardellino

Hi,
how could I dinamically add and delete TextBoxes into a Frame? I need to add
some texts into that frame, and there are some titles and the respective
texts. The titles are bold, and the texts are normal. So, since it is not
possible to change the weight of part of a TextBox text, I need to add
various TextBoxes, one for each title, and one for each respective text. I
know how to properly display the TextBoxes, but I don't know how to create
or delete them.

Thanks in advance,
 
P

Pablo Cardellino

Since I didn't get any answer, I'm not sure whether the question wasn't
clear enough or controls can't be added to the form or to the frame control
at all.

Let me try again: I have a form, and among its controls there is an empty
frame control. I need to populate this frame control with some TextBox
controls.

I'm trying with the Object.Controls.Add, where Object is an object var that
will store the TextBox while it is being modeled, but it is not clear how to
manage to display the object within the frame.

As the application runs, the frame contents changes, and the TextBoxes are
added or deleted as necessary.

Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top