FoxPro and .NET Interop
Show forms properly with wwDotNetBridge
Gravatar is a globally recognized avatar based on your email address. Show forms properly with wwDotNetBridge
  Mauricio Molinero
  All
  May 31, 2022 @ 04:46pm

Hi!

I'm showing winforms in my VFP app but with some issues, like not getting the right KeyStrokes TAB, ENTER, ESC, etc.

In this article it shows how to do it with VB.Net, and i cannot write it in C#, or use it from VFP with wwdotNetBridge,

https://docs.microsoft.com/en-us/dotnet/desktop/winforms/advanced/how-to-support-com-interop-by-displaying-each-windows-form-on-its-own-thread?view=netframeworkdesktop-4.8

Any Help?

Gravatar is a globally recognized avatar based on your email address. re: Show forms properly with wwDotNetBridge
  Rick Strahl
  Mauricio Molinero
  May 31, 2022 @ 06:52pm

Windows Forms is problematic because they expect their own Windows event loop. If you're not displaying Modal Dialogs and pass in the VFP parent Window handle there will be problems with event processing and focus.

Not recommended honestly unless you use .ShowDialog().

+++ Rick ---

© 1996-2024