How can I execute code after my form starts?

后端 未结 5 1447
庸人自扰
庸人自扰 2020-12-11 19:56

I\'m really new to Windows Forms programming and not quite sure what\'s the right way to go about programming.

This is my confusion.

I have a single form:

5条回答
  •  轮回少年
    2020-12-11 20:25

    Once Application.Run(window) is called, you'll want to handle subsequent things within the application window itself.

    In the code view of the form, find the following (or add it)

    private void ReconcilerConsoleWindow_Load(object sender, EventArgs e)
    {
    //this is where you do things :)
                if (CallSomeMethod() == true)
                {
                     window.SetLogText("True");
                }
    }
    

提交回复
热议问题