Programmatically click mouse

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a subform on a form that I would like to programmatically move down
on a page (it's a pdf viewer). We are keying and find it more efficient to
use ctrl keys than take our hands off the home row to move the mouse.

Anyone have any ideas how to do this?

Thanks,

Bonnie
 
to make it move down, your will need 2 things.
first the name of the subform object, wich is not what it contain.
click on it and check in property and you should see it there, i think
by default the first one created is called subform1 or something like
that. Secondly the code to use for this is:

here replace subform1 by the actual name you have for it

subform1.top = subform1.top + 100

this simple line will lower the subform by 100 Twips, ok now you don't
know what twips are,
15 Twips = 1 pixel so if you want to make it go down by 100 pixel the
value to use is +1500
 
Sounds like exactly what I need. I'll give it a go.

Thanks so much for the help.
 
Hi Franck,

I tried your suggest and go the error "The control or subform control is too
large for this location."

Perhaps it's not the subform that I am actually trying to move down but the
pdf viewer on the subform and I can't do it.

Thanks,

Bonnie
 

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

Back
Top