Issue- .Net-Vb6.0 activeX

HI,

In my .Net application i am using a vb6 ocx control. The vb6 control internally refers one public method from my .net application. My problem is while the vb6 activex control trying to refer this variable then getting an exception "Object does not support this property or method". I have replaced the .net public method to readonly property, after that it is working fine. Can anyone tell me the reason

Thanks



Answer this question

Issue- .Net-Vb6.0 activeX

  • Alexnaldo Santos

    The problem is with the Vb6.0 Activex control code "UserControl.Extender.parent" will accept only properties from the .Net application.

    For eg: UserControl.Extender.parent.SetFocus--->This will throws exception

    UserControl.Extender.parent.SetFocus.Enabled -->No Issues


  • Mongsreturn

    Could you please post the code for the method and the ReadOnly Property Could you also post the VB6 code where you're trying to call the property/method

    Thanks,

    Jonathan



  • Issue- .Net-Vb6.0 activeX