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
[email protected]
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
 
Top