How to create textbox control via code?

N

newst

Hi all,

I'd like to know how to create textbox control via VBA code on runtime. Is
it possible or not?
I need to create textbox more than one. I have a number that i will use in
number of textboxes.

Thanks

Uysal YILMAZ
 
M

Marshall Barton

newst said:
I'd like to know how to create textbox control via VBA code on runtime. Is
it possible or not?
I need to create textbox more than one. I have a number that i will use in
number of textboxes.


Sorry, but that concept is an oxymoron. Creating controls
is strictly a design time operation. Even if you open the
form in design view, use CreateControl, you open the door
for all kinds of trouble. This whole idea is impossible in
an MDE file.

The usual approach is to precreate as many text boxes as
will ever need and make them visible at run time.
 

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