private void btnLoadFromFile_Click(object sender, EventArgs e)
        {
            using (openFileDialog = new OpenFileDialog())
            {
                openFileDialog.Filter     = "Imagens (*.jpg)|*.jpg";
                openFileDialog.DefaultExt = "*.jpg";
                if (openFileDialog.ShowDialog() == DialogResult.OK)
                {
                    try
                    {
                        //lock (this)
                        //{

                        imgsave = new Bitmap(Image.FromFile(openFileDialog.FileName));

                        //}
                        this.Hide();
                        FrmScreenshot frmScreenshot = new FrmScreenshot(imgsave, this);
                        frmScreenshot.Show();
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show("Falha ao carregar a imagem!\n" + ex.Message, "Erro!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                    finally
                    {
                    }
                }
                else
                {
                    MessageBox.Show("Operação cancelada!", "Cancelado", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }
 private void btnScreenshot_Click(object sender, EventArgs e)
 {
     if (vspMainPlayer.IsRunning && vspMainPlayer.GetCurrentVideoFrame() != null)
     {
         imgsave = new Bitmap(vspMainPlayer.GetCurrentVideoFrame());
         this.Hide();
         FrmScreenshot frmScreenshot = new FrmScreenshot(imgsave, this);
         frmScreenshot.Show();
     }
     else
     {
         MessageBox.Show("Falha ao capturar a imagem!\n\nSelecione um dispositivo antes de capturar a imagem!", "Erro!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }