Sign in to follow this  
Marz

Help with VB.6 Control Array

Recommended Posts

Marz    150
I am programming a board game using Visual Basic 6. Players go around a board of 32 squares by rolling a six sided dice. To make the view larger I have put each corner containing 8 game spots on a separate form. I then created an Image control array called spot(29), 1 for each board space. The problem is that VB will not let me carry a control array from one form to another. Is there a way I can carry a control array from form to form or should I be approaching this from a different angle? I would appreciate any and all help offered but please answer in Laymen's terms as I am still a novice. Thank you

Share this post


Link to post
Share on other sites
smr    2468
I'm not sure I understand what you're trying to do. When you say "carry a control array," do you mean access it from another form or are you trying to place all of the controls from the array onto the other form?

Share this post


Link to post
Share on other sites
Marz    150
I want the control array to exist in all four seperate forms. It takes four forms to display all of the blocks at the size I want them to be.

Share this post


Link to post
Share on other sites
Marz    150
hmm they really should change that. lol
Thanks. I have thought of a new way to approach the whole thing.

Share this post


Link to post
Share on other sites
smr    2468
Well, there's on way that I know of to force a control to exist on two different forms. You can have a reference to a control from another form in a variable on a form and even subscribe to that control's events. You just can't make it show up on that form.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this