All pastes #425158 Raw Edit

Gozzy

public text v1 · immutable
·published 2007-04-05 09:07 UTC
rendered paste body
in application
void Main(string[] args){application.run(new form1(string[] args);}}

in Form1

        public Form1(string[] args)
        {
            InitializeComponent();
            label1.Text = args.Length.ToString();
        }

how can i execute  "label1.Text = args.Length.ToString();" when the program is opened again, im trying with a public static void but they do not have access to label1.text