Would you like to react to this message? Create an account in a few clicks or log in to continue.

    OnLoaded event

    avatar
    Admin
    Admin


    Posts : 77
    Join date : 2009-07-28

    OnLoaded event Empty OnLoaded event

    Post  Admin Sat Aug 15, 2009 6:47 am

    Code:
    protected override void OnLoad(EventArgs args)
    {
        base.OnLoad(args);

        Application.Idle += new EventHandler(OnLoaded);
    }

    private void OnLoaded(object sender,
                          EventArgs args)
    {
        Application.Idle -= new EventHandler(OnLoaded);

        // TODO: add relevant code here
    }

      Similar topics

      -

      Current date/time is Mon May 20, 2024 8:23 am