PDA

Click to See Complete Forum and Search --> : Card Game Help again.


Cyber_Warrior
Oct 31st, 2000, 09:43 PM
As you may have already noticed I'm not that good with VB.

I have yet another question.

Here is the senario. You have 3 picture boxes on a form. When you drag the picture boxes around picture box 1 will always go under picture box 3.

What it is that I would like to know is how can I get picture box 1 to drag over picture box 3 and not under.

overhill
Oct 31st, 2000, 10:35 PM
I have very little game programming experience but I think that I can help anyway. This is what I would suggest.

Each time that a picture box is clicked, bring the control to the front using: ControlName.ZOrder

For example if PictureBox1 is being dragged, set:

PictureBox1.ZOrder

This will bring the PictureBox to the front and all of the other controls will be under it. Hope that this helps!