Hi
i have a problem i cant figure out i know the problem but dont know how to fix it
private static string Characters()
{
string str = null;
const string lower = "abcdefghijklmnopqrstuvwxyzæøå";
const string upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ";
const string numeric = "0123456789";
// connot acces non-static field 'checkLower' in static context
if (checkLower.Checked)
{
str += lower;
}
if (checkUpper.Checked)
{
str += upper;
}
if (checkDigits.Checked)
{
str += numeric;
}
return str;
}
// if i change Characters to non-static this will say cannot access non-staic method 'Characters' in static context
private static char[] fCharList = Characters().ToCharArray();
try this
and call