SendKeys cannot run inside this application

Originally Posted 28 July 2017, 1:42 am EST

  • Originally Posted 28 July 2017, 1:42 am EST

    Hi,

    We're receiving this error running a WinForms module that is started by a WPF application.

    "SendKeys cannot run inside this application because the application is not handling Windows messages. Either change the application to handle messages, or use the SendKeys.SendWait method."

    It appears the TAB key is firing off SendKeys.Send() calls which don't work in this scenario for the Editor_KeyDown event. Is there a recommended workaround?

    We are running an older version of the .NET 4 controls - 4.0.20121.61252.

    Cheers!
  • Reply

    Adding more tags!
  • Marked as Answer

    Reply

    Hi Shiv,

    I am unable to replicate the error using the latest build of TrueDBGrid at my end. I have created a WPF application and hosted WinForms C1TrueDBGrid control in the same. However, no such problem occurs on pressing the Tab key. Please check the behavior with the latest build:
    http://prerelease.componentone.com/dotnet40/c1winforms/2017-t2/C1WinForms.4_4.0.20172.271.zip

    If the issue still exists, please provide a stripped down application demonstrating the same. I would like to investigate this further.

    Thanks,
    Pragati
    2017/08/TrueDBGrid_SendKeys.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels