Example #1
0
    public Form1()
    {
        InitializeComponent();

        //creat a sample object of FormEXt
        var form = new FormExt();

        //subscribe its CustomClose Event
        form.CustomClose += new FormExt.CloseMeDelegate(form_CustomClose);
        //set the text
        form.Text = "Samplee 01";
        //show the form
        form.Show();

        //repeat a again
        form              = new FormExt();
        form.CustomClose += new FormExt.CloseMeDelegate(form_CustomClose);
        form.Text         = "Samplee 02";
        form.Show();
    }