I am not sure what exactly the issue is here. I am working with 2 strings and I keeping getting the error "A field initializer cannot reference the non-static field, method, or property 'Captcha.Capture.CaptureTime'".
Here's a snippet from the code:
string CaptureTime = DateTime.Now.Month.ToString() + "-" + DateTime.Now.Day.ToString() + "-" + DateTime.Now.Year.ToString() + "-" + DateTime.Now.Hour.ToString() + DateTime.Now.Minute.ToString() + DateTime.Now.Second.ToString();
string SaveFormat = Properties.Settings.Default.SaveFolder + "Screenshot (" + CaptureTime + ")." + Properties.Settings.Default.ImageFormat;
I won't go into detail as to why I am using the strings in this particular way. Everything works fine. I'm guessing it has something to do with a string being within another string? It might be completely obvious but I really have no clue. Any ideas?