*** From your VFP7 routine oSomething = CreateObject([MyVFP9EXEName.MyVFP9Class]) oSomething.DoSomething() oSomething.oForm.Show(1) Declare INTEGER SetForegroundWindow IN WIN32API INTEGER SetForegroundWindow(ooo.OFORM.hWnd) *** In VFP9 EXE (it must be EXE if you want to have user interface) DEFINE CLASS MyVFP9Class AS CUSTOM OLEPUBLIC oForm = NULL PROCEDURE DoSomething() SYS(2335,1) this.oForm = CREATEOBJECT([Form1]) ENDPROC ENDDEFINE DEFINE CLASS form1 AS form DoCreate = .T. Caption = "Form1" Name = "Form1" ShowWindow = 2 DeskTop = .t. ADD OBJECT label1 AS label WITH ; Caption = "Label1", ; Height = 17, ; Left = 40, ; Top = 33, ; Width = 251, ; Name = "Label1" PROCEDURE Init thisform.Label1.Caption = VERSION() ENDPROC PROCEDURE Destroy * CLEAR EVENTS ENDPROC ENDDEFINE * *-- EndDefine: form1 **************************************************