Question Locked

How do I order symbols within a layer in VB

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I?m trying to order the symbols in this layer so that the ?RED? is on top of the ?YELLOW?, which is on top of the ?GREEN?. What is the command I can insert somewhere in each line that will do this? The sample code is attached.

3 replies

by slayer_

Let's start off with the basics.
you said VB, which VB?

Second, Symbols?
Third, what do you mean insert, like into a button or event?

ImgGreen.zorder=0 'I think, could be 1....
ImgYellow.zorder=0
ImgRed.zorder=0

Done in that order in the event of your choosing should layer images the way you want to at runtime. I am pretty sure that was VB6 code, not sure how it's done in VB.net, I've never had the purpose to layer images before.

by tony hopkinson

Bass ackwards design anyway.

You want a key for say priority, 0,1,2 or an enumerated type.
Then based on that you set the colour and the z-order.

So if you had a and object with a Priority property. Setting it would set the colour and zorder at that point.

This discussion is closed to new replies.