Пример #1
0
        private void BTNGIAUTIN_Click(object sender, EventArgs e)
        {
            FRMGIAUTIN fRMGIAUTIN = new FRMGIAUTIN();

            fRMGIAUTIN.Show();
            this.Hide();
        }
Пример #2
0
        private void cHỌNẢNHToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog1 = new OpenFileDialog();

            openFileDialog1.Title  = "Chose an Image To Extract";
            openFileDialog1.Filter = "Bitmap (*.bmp)|*.bmp";
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                inPath2 = openFileDialog1.FileName;
                Bitmap bitmap = new Bitmap(inPath2);
                FRMGIAUTIN.FitPicture(bitmap, ANHGIAIMA, groupBox3);
                ANHGIAIMA.Image = bitmap;
            }
            else
            {
                inPath2 = "";
            }
            // load anh len picture box 3
        }