ActiveX Control Moves When Enabled

V

Vinny P

I've got an ActiveX control on an Access form. It's ENABLED property is
initially set to "FALSE". At run-tim, I set the ENABLED property to TRUE and
the control moves to the upper left coner of the form. I've tried it with a
couple of different ActiveX controls and get the same result. How do I
prevent the control from moving? Thanks.
 
V

Vinny P

For anybody that finds this helpful....

I don't know why this behavior occurs, but I did come up with a decent "work
around". After reading a reply to another post that suggested setting the
top and left properties (to the original position) after enabling the
control, I decided to tyr the following:

First, I set the visible property of the control to false, then I enable the
control, and finally, I set the visible property back to true. This works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top