Quang Dinh Luong

Quang Dinh Luong

  • NA
  • 76
  • 18.6k

Flexible folder path

Nov 7 2015 11:17 PM
string folderOfAlarm = @"Alarm\ " +  textbox1.Text;
 
As you can see, I try to declare a path which depends on user input 
But I suffer this error: a field initializer cannot reference the nonstatic field method or property
 
Any knows why? Please help me
Thanks, 

Answers (3)