I have a Form with a TextBox
in it. Every time the text changes i use the TextChanged
Event to create a PDF-file and load it to an AxAcroPDF
-Object in the same Form. This works fine, but then the TextBox
loses focus and for some reason the textBox.Focus()
after loading the file doesn't work.
Has anyone ideas how I can arrange that you can go on typing while refreshing the PDF?
EDIT:
i had another idea, i made a separate thread where i update the PDF and in the TextChanged
-event i only set a flag. But now im getting a strange error
Unable to cast COM object of type 'System.__ComObject' to interface type 'AcroPDFLib.IAcroAXDocShim'.