placing a shape over a textbox

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

daniel

Squirm
04-06-2003, 06: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.

Feral
04-07-2003, 02: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.

Flyguy
04-07-2003, 02: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