示例#1
0
        //protected override void OnLoad(EventArgs e)
        //{
        //    //Load the Form At Position of Main Form
        //    int WidthOfMain = Application.OpenForms["LoginForm"].Width;
        //    int HeightofMain = Application.OpenForms["LoginForm"].Height;
        //    int LocationMainX = Application.OpenForms["LoginForm"].Location.X;
        //    int locationMainy = Application.OpenForms["LoginForm"].Location.Y;

        //    //Set the Location
        //    this.Location = new Point(LocationMainX + WidthOfMain, locationMainy + 10);

        //    //Animate form
        //    AnimateWindow(this.Handle, 500, AW_SLIDE | AW_HOR_POSITIVE);
        //}

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
            FormCameraControlTool frm = new FormCameraControlTool();

            frm.Show();
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            FormCameraControlTool cameraObj = new FormCameraControlTool();

            cameraObj.ShowDialog();
        }