Send key to OCX

  • Thread starter Thread starter o1j2m3
  • Start date Start date
O

o1j2m3

An ocx is added into a .Net form, press pageUp and pageDown on ocx, the
ocx will scrolling contents up and down.

Now... the problem is the ocx has no method, function or sub to scroll
contents up and down. The only way is using keyboard directly invoke
the scrolling feature inside the ocx...

The question here is... is there any WINAPI or .Net function, method or
sub could simulate keyboard key and invoke the key on the ocx?

Thanks for advance...
 
but the sendkeys class only send the key to the form rather than to the
ocx... if the ocx is not in focus, the send keys will lose its
meaning...... Further more... I cannot ask the focus jumping around the
application just to send keys.....=.="

HELP~anyway. thank you for your advice
 

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