>>Sometimes I use the simple trick to prevent from clicking on something.
>>I put the transparent (or opaque) shape with transparent BorderStyle over those objects, and, when I need, I manipulate by shape's ZOrder method to bring it to front or send to back. That does the trick bu just one command:
>>
>>thisform.shpOverMyObject.ZOrder(0)
>>
>>Variations depend on your form, of course.
>>
>>Nick
>
>
>Interesting trick. Might have a lot of uses...
>
>Chris
Sometimes I also use the transparent container for that, with invisible objects inside, which become visible at some point (clicking on the container or something else...)
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison