Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

How Can I Force A TextPattern.TextChanged event to fire in standard WinForms app?

$
0
0

I'm trying to build an automation program for an application I don't often have unlimited access to, so to work around this I'm mimicing the UI of this legacy application in a WinForms app.  There are some differences.  For example, I know for a fact that when the text changes on certain controls in the target legacy application the TextPattern.TextChanged event does fire (can see this when I run accevent.exe program).

So, I'm trying to test this with my WinForms test app that mimics the legacy application, but so far I have been unsuccessful in getting this event to fire using standard WinForms controls: TextBox, RichTextBox, etc.

Is there a way to force the event to fire?  Is there some property I'm missing and am not setting?  Why won't this event fire on a standard text box when the value changes?  The standard WinForms TextChanged event fires, but I'm looking for the UI Automation TextPattern.TextChanged event.

Thanks in advance for the help



Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>