Setting Focus to Active Document after creating doc from template

S

Simon Shutter

Hi,

I'm using a global template to create a new doc based on a template.
However, once created, the new document window appears not to have the focus
as the cursor indicator is not blinking and I have to click on the document
to start typing text. I've checked my code and the new doc has the focus so
is there something else I need to do to allow typing without clicking on the
window?

Thanks, Simon
 
S

Simon Shutter

found solution myself - I had the dialog that took input set to modal and,
even though I closed the dialog with code, it still didn't return focus to
active document.

solution: set dialog ShowModal property to False
 

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