Control arrays

B

Bill Nguyen

I tried to create a set of controls at runtime and ran into these problems:

1. I created 1 row containing several controls (textboxes) as placeholders.
I set these control .visible = false. The controls are palced within a
groupbox called gbDetail
2. I added a sub to create same row of controls using an array and call it
from a For next loop. The palceholders postions are used to calculate the
control array position.
3. The controls appeared instead in the active Datagrid instead of in
gbDetail even though I setfocus to gbDetail first.

How to I set the starting anchor position so that the controls dispalyed
properly on the form?

Thanks a million.

Bill
 
B

Bill nguyen

Ken;

I was able to displa the control array. However, when I referred to them
from another subroutine (to read .text value, for instance), I always got
error during design time because the controls do not exist then.

Thanks

Bill
 

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