none
Why multiline Textbox does have support of textpettern in COM API while it is there in Manage API? RRS feed

  • Question

  • I have created automation of window application using c# Manage code API. Everything was working fine but it was too slow. it was taking more that 10 second to find controll with manage code.

    After learning about speed of COM API must fast than manage code , We shifted out project to COM API. We got the speed but we lost the search and cursor navigation functinality in multiline or single line textbox. While same thing is working fine with manage code api.

    Please suggest any sollution, How can i get both textpattern in simple textbox and lighting speed of com API ?

    As qiuck and simple sollution, I started using both COM and manage DLL, To get fast speed for search using COM API, And then convert to manage code "AutomationElement" using handler, after that perform text perttern using manage API. But don't why when i merge both mange code API and COM API in single project, COM api also start behaving slow ?

    Thursday, November 7, 2019 3:35 AM

All replies

  • Hi,

    >>>it was taking more that 10 second to find controll with manage code.
    Are there many controls in your app? It's very strange.

    Here is a example about Find and Highlight Text Using UI Automation.

    Could you give a minimal reproducible issue sample for better support?

    Profiling is the only surefire way to find out what exactly is performing slowly in your code. 

    Since this case is related to C#, so I will move this thread to C# forum for better support.

    Best regards,

    Jeffrey


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.





    Thursday, November 7, 2019 8:02 AM