Cursor Moves when displaying picture

T

TallRey

I have an image box called ImageBoxon a form. On Form Current, I execute the
following code:
Form.ImageBox.Picture = PicturePath
Form.ImageBox.Visible = True
When I go to the navigation buttons and press next record, the cursor moves
to the top of the imagebox. Is there a way to either preventing it from
moving or finding out where the cursor had been (note it was not on a
control) and then putting it back?
It is very annoying as I browse through the records to have to continually
move the cursor back to the "next Record" navigation button.
 
S

Steve Schapel

TallRey,

I don't think the VBA procedure (which, incidentally, is not a macro)
that you have running on the Current event of the form, is related at
all to the problem.

As far as I am aware, this is standard functionality. The focus does
not stay on the navigation buttons. If you wanted to control where the
focus goes, then you could do so, to one of the other enabled controls
on the form.
 

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