>I created a VFP class "MyGrid" based on grid, Now I want to use "MyGrid" in VB.
>How to create a OCX for "MyGrid"? How to use "MyGrid" in VB?
The simple answer is you can't - VFP is unable to create ActiveX controls. A VFP in-process server cannot contain any UI elements.