Image Placement and Control

SonHouse
12-23-2004, 02:12 PM
I have two sets of dynamic arrays, one set acts as containers on a table layout, the other holds images that I drag and drop on the container array coordinates. My question is how can I tell what container is associated with what image control? I drag and drop the image controls, picDeck(index), easy enough, but when I go to move them off the container,imgPlacement(index), I need to be able to recognize that the container control has nothing on top of it or associated with it...so I can move something else in the picDeck(index) place. Does that make sense? I tried using the tag property of the imgPlacement(index) control to flip back and forth between 1 and 0 so I can have a reference..but got stuck. Any ideas?

Thanks

Diurnal
12-23-2004, 02:55 PM
Can you use the .Tag property of the image control to hold the index number of the container array. If the control is available, set the .Tag property to -1 or some value that the other array will never use. Then to find out if it is available or where it is being used, quarry the .Tag property.

SonHouse
12-24-2004, 03:27 PM
How can I test the control that acts as the container to see whether or not something is on top of it or not?

Iceplug
12-24-2004, 07:52 PM
There is no method of the container that tells you if it has any contained controls... all of the controls are in the form collection.
So, it would be easier for you to set the tag of the container control when you add a picture to it. Make the tag like a count: increment it when you add a control, and decrement when you remove a control.
:)

SonHouse
12-25-2004, 11:02 AM
Iceplug...so, should I move the entire picture box control of an array into the container array when I move a control around, if so how would I do that?? or should I just move the picture out of the picture box control.

Thanks and happy holidays...

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum