Adding control to the document and focus

C

climber

I dynamically add a control to the active document with
"this.Controls.AddControl " which is triggered by the text the user types.

After the control appears, the next letter the user types overwrites it with
their text.

It acts like the control is selected, but the control never has focus
(according to it's events/properties), yet their cursor is no longer blinking
on the document.
 
J

Jean-Guy Marcil

climber was telling us:
climber nous racontait que :
I dynamically add a control to the active document with
"this.Controls.AddControl " which is triggered by the text the user
types.

After the control appears, the next letter the user types overwrites
it with their text.

It acts like the control is selected, but the control never has focus
(according to it's events/properties), yet their cursor is no longer
blinking on the document.

Show us your code.

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
P

Perry

this.Controls.AddControl

Presume C# code to automate MS Word?
Kindly include code, especially the statements in which Word is instantiated
....




--
Krgrds,
Perry

System:
Vista/Office Ultimate
VS2005/VSTO2005 SE
 

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