Hi Sergey,
I am trying to run some interface and reports in VFP through VB and thats the reason i need to make the visible true but it flickers.
Thanks
>I'm not sure why do you need SCREEN=OFF if VFP automation server starts invisible anyway. Can you provide more detailas about what are you trying to do? Keep in mind that you'll have to have licensed copy of VFP for each computer that uses VFP as an automation server.
>
>
>>Dear friends,
>
>>
>>Following is the piece of code in VB running succesfully, the only problem I face is the flicker of the screen while activating VFP application.
>>
>>SCREEN=OFF don't work.
>>
>>Any ideas ?
>>
>>
>>
>>Dim MyVFp As New VisualFoxpro.FoxApplication
>>
>>Private Sub srs_Click()
>>MyVFp.DoCmd ("_screen.visible=.F.")
>>MyVFp.Visible = True
>>MyVFp.Top = 0
>>MyVFp.Left = 0
>>MyVFp.Caption = "VB Called VFP"
>>MyVFp.DoCmd ("Set default to d:\try\")
>>MyVFp.DoCmd ("Do main")
>>MyVFp.Visible = False
>>MyVFp.Quit
>>Set MyVFp = Nothing
>>End Sub
>>