Reference to a non-shared member requires an object reference occurs when calling public sub

后端 未结 2 1691
旧时难觅i
旧时难觅i 2020-12-11 00:24

I have a Public Class \"General\" in which is a Public Sub \"updateDynamics\". When I attempt to reference it in the code-behind for a page like so:

updateDy         


        
2条回答
  •  Happy的楠姐
    2020-12-11 00:31

    Go to the Declaration of the desired object and mark it Shared.

    Friend Shared WithEvents MyGridCustomer As Janus.Windows.GridEX.GridEX

提交回复
热议问题