placing a shape over a textbox

04-06-2003, 11:52 AM
is it possible to bring a shape infront of a text box? i cant seem to do it.


04-06-2003, 07:22 PM
No it isnt.
Shapes, labels and lines are lightweight controls merely drawn onto the DC of their container.
Textboxes, listboxes etc are heavier controls and so have DCs of their own.

04-07-2003, 03:04 AM
Hi danielz000,

One way of 'appearing' to do it is to play with the visible property so:

'Show shape
shape1.visible = true
text1.visible = false

'Show text
shape1.visible = false
text1.visible = true

This gives the illusion the shape is over the text box.

04-07-2003, 03:31 AM
The Shape is lightweight control which means it can not on top of other controls.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum