You can use form's Controls collection:
Me.Controls("Label" & i).Caption = arr(i)
VB has special feature called Control Array, which can simplify coding. To create Control Array, give two labels the same name, or set Index property of the label to some number.
You'll be able to...
I think the problem is because some names appear more than once.
To create list of distinct names, use a collection.
Here is one way, collection holds row index (1...5) for each person:
colRows.Item("Ben Adams") = 1
...
colRows.Item("Sam Taylor") = 5
' Form1, add 2 listboxes...
By "define class1" I DIDN'T mean you declared variable of the type class1, like "private x as class1", that should work.
To clarify:
Do you have variable *named* class1, like:
Private class1 as anything
or control, module (other then the one in your dll) or form named...
If "as dll.class1" is required, you have class1 defined in two (or more) places. Use Object browser (F2) to find second definition of class1, or do a search.
Making a project group is not what will make class1 visible to other projects.
Select your standard exe project, then use menu Project, References, and check dll.vbp project, or add reference to dll.
> I still would like to know where this "Layout Menu" is, PLEASE!
You found that description here:
http://msdn.microsoft.com/library/en-us/vcug98/html/_asug_changing_the_tab_order.asp
Visual C++ User's Guide
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.