Is there anyway to tell vb which shapes to draw first? I am drawing a line directly onto the form, but it draws over the top of some of my other shape objects, is there any way to set the ordering? Like a bring to front or send to back?
Malb
Printable View
Is there anyway to tell vb which shapes to draw first? I am drawing a line directly onto the form, but it draws over the top of some of my other shape objects, is there any way to set the ordering? Like a bring to front or send to back?
Malb
i dont think so, but you can just draw them in the right order, or after adding an object that must be behind something, just draw them all again in the right order...
Yeah this is the problem, the objects are ordered correctly in the code, but when drawn onscreen there not, because its all on a timer i dont really wanna draw them again if possible
perhaps use a line control instead of drawing the line, then you can set it's ZOrder in relation to the other shape controls.
well if on timers why not set up some boolean variables like drawn1, drawn2... and so forth, then you could say
VB Code:
if drawn1 = true and drawn2 = false then 'draw second image drawn2=true end if if drawn2 = true and drawn3 = false then 'draw 3rd image drawn3=true end if '... and so forth