Jump to content
  • Advertisement
Sign in to follow this  
Marz

Help with VB.6 Control Array

This topic is 4827 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
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
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
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!