An object reference is required for the non-static field, method, or property

后端 未结 1 536
借酒劲吻你
借酒劲吻你 2021-01-21 11:13

I want to pass myConnString in all forms. ( I am working in winform and mysql C#. ) So I tried this link.

   static class GlobalClass
    {
        private stri         


        
相关标签:
1条回答
  • 2021-01-21 11:44

    Your myConnString field should be static too :)

    0 讨论(0)
提交回复
热议问题