Hello,
I need to change a button text using an static function.
static string[] ARRay = new string[10];
[STAThread]
static void Main()
{
string[] args = Environment.GetCommandLineArgs();
for (int i = 1; i != args.Length; ++i)
{
command(i.ToString());
ARRay[0] = i.ToString();
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
static void command(string line)
{
button1.Text = ARRay[0]; // here error
}