Goran Bibic

Goran Bibic

  • 723
  • 2.5k
  • 100.4k

Non static field C# error connection string

Oct 25 2019 3:43 AM
Have error when start app in conn string input on form
 
I use string from class  "ConnectionClass"
 
 
  1. string con = ConnectionClass.PullData(godinaComboBox.Text); 
 
  1. Error   CS0236  A field initializer cannot reference the non-static field, method, or property 'login.godinaComboBox'    
 

Answers (2)