VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

A clean way to add control arrays at runtime

Trey Smith  (1 Submission)   Miscellaneous   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This code, will add elements to a control array element at runtime. This is very easy to do, as a control array is actually a collection and gives us a count.

Assumes
First off, make SURE you do this trick to VB. copy your control on the form, answer YES to create a control array, delete the new instance. Otherwise the control is not a collection.

Side Effects
New control is EXACTLY where the orginal was.

Rate A clean way to add control arrays at runtime (7(7 Vote))
A clean way to add control arrays at runtime.bas

A clean way to add control arrays at runtime Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters