cursor frozen after showDialog()

  • Thread starter Matthias Langbein
  • Start date
M

Matthias Langbein

Hi all,

I've got a Word Add-In which shows a dialog (user definde form with
ShowDialog() method) when a certain event (e.g. a double click on the
document) happens.

When the dialog is closed (with the close method of the form
instance), the word application window is focussed, but the cursor is
not blinking, it is frozen. The user has to click with the mouse
somewhere in the document (so the cursor starts blinking again) before
he can continue typing.

Is there a way to "activate" the cursor automatically after the form
is closed?

Thanks a lot,
Langi
 
C

Cindy M.

Hi Matthias,
I've got a Word Add-In which shows a dialog (user definde form with
ShowDialog() method) when a certain event (e.g. a double click on the
document) happens.

When the dialog is closed (with the close method of the form
instance), the word application window is focussed, but the cursor is
not blinking, it is frozen. The user has to click with the mouse
somewhere in the document (so the cursor starts blinking again) before
he can continue typing.

Is there a way to "activate" the cursor automatically after the form
is closed?
The first thought that occurs to me is to do something along the lines
of
Application.Windows(1).Activate
Application.Selection.Range.Select

(Where Application is the object you're using to "talk to the Word
application".)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 

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