Re: c# word automation. How to get or read value from a textbox on a word document

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Heres my solution.

MSForms.TextBox tb =
(MSForms.TextBox)oDoc.InlineShapes[1].OLEFormat.Object;

tb.text will give the value I am looking for.

thanks Andrey and Kristijen

.