VFP and .NET Interop
Running winforms from FoxPro
Gravatar is a globally recognized avatar based on your email address. Running winforms from FoxPro
  Elkanah
  All
  Mar 17, 2017 @ 08:21am

Hi, I was asked to run a WinForms application from a FoxPro project. Can you direct me in how to go about doing this. I have started reading about wwDotNetBridges, but so far i have only seen info on linking up FoxPro with class libraries. Is there a way to actually execute and open winforms from FoxPro?

Thanks!

Gravatar is a globally recognized avatar based on your email address. re: Running winforms from FoxPro
  Rick Strahl
  Elkanah
  Mar 17, 2017 @ 03:42pm

No not really.

While you can get WinForms components to launch by launching them on a separate thread and then doing Application.Run(), that usually causes all sorts of other problems eventually with forms not getting and giving up focus correctly etc.

My suggestion if this is something you want to do is to create a separate application (an exe) have have some mechanism for the application to communicate with your FoxPro app - via file messaging, named pipes or something similar essentially implementing a notification system. But I would avoid trying to run a WinForms application within the same EXE as your FoxPro app.

+++ Rick ---

© 1996-2017