public FrmMain() { _counter = 1; _titleName = "Screen Catcher"; FrmCatcher = null; InitializeComponent(); }
private void btnShowCatcher_Click(object sender, EventArgs e) { if (FrmCatcher == null) { btnShowCatcher.Enabled = false; FrmCatcher = new FrmCatcher(this); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.SupportsTransparentBackColor, true); FrmCatcher.TransparencyKey = FrmCatcher.BackColor; FrmCatcher.Show(); } }