Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void
        private void takeSnapshotToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // hide distractions
            takeSnapshotToolStripMenuItem.HideDropDown();
            HideStatusLabel();

            // get which screen the player is on
            //Screen scrn = Screen.FromControl(this);
            var bmpSnapshot = new Bitmap(mplayerPanel.Width, mplayerPanel.Height, PixelFormat.Format32bppArgb);

            // Create a graphics object from the bitmap
            var gfxScreenshot = Graphics.FromImage(bmpSnapshot);

            // Take the screenshot from the upper left corner to the right bottom
            var screenPoint = this.PointToScreen(new Point(mplayerPanel.Location.X, mplayerPanel.Location.Y + mainMenuStrip.Height));
            gfxScreenshot.CopyFromScreen(screenPoint, new Point(0, 0), mplayerPanel.Size, CopyPixelOperation.SourceCopy);

            var snapshotForm = new SnapshotForm(bmpSnapshot, mp.FileInfo);
            snapshotForm.ShowDialog(this);
            snapshotForm.Dispose();
        }