private void btnReadFeedback_Click(object sender, System.EventArgs e)
        {
            // Retrieve the status bar text.
            string text;

            SvcStatusBar.GetText(out text);
            System.Windows.Forms.MessageBox.Show(text);

            // Clear the status bar text.
            SvcStatusBar.FreezeOutput(0);
            SvcStatusBar.Clear();
        }
        private void btnUpdateDesignerRegion_Click(object sender, System.EventArgs e)
        {
            // Set insert/overstrike mode.
            object mode = 1; // Insert mode

            SvcStatusBar.SetInsMode(ref mode);

            // Display Ln ## Col ## Ch ## information.
            object ln = "##", col = "##", ch = "##";

            SvcStatusBar.SetLineColChar(ref ln, ref col, ref ch);
        }
        private void btnWriteFeedback_Click(object sender, System.EventArgs e)
        {
            // Checks to see if the status bar is frozen
            // by calling the IsFrozen method.
            int frozen;

            SvcStatusBar.IsFrozen(out frozen);
            if (frozen == 0)
            {
                // SetColorText only displays white text on a
                // dark blue background.
                SvcStatusBar.SetColorText("Here's some highlighted text", 0, 0);
                System.Windows.Forms.MessageBox.Show("Pause");
                SvcStatusBar.SetText("Done");
            }
        }
        private void btnShowProgressBar_Click(object sender, System.EventArgs e)
        {
            uint   cookie = 0;
            string label  = "Progress bar label...";

            // Initialize the progress bar.
            SvcStatusBar.Progress(ref cookie, 1, "", 0, 0);

            for (uint i = 0, total = 100; i <= total; i++)
            {
                // Display incremental progress.
                SvcStatusBar.Progress(ref cookie, 1, label, i, total);
                System.Threading.Thread.Sleep(10);
            }

            // Clear the progress bar.
            SvcStatusBar.Progress(ref cookie, 0, "", 0, 0);
        }
        private void btnShowAnimation_Click(object sender, System.EventArgs e)
        {
            object icon =
                (short)Microsoft.VisualStudio.Shell.Interop.Constants.SBAI_General;

            // Display the animated Visual Studio icon in the Animation region.
            // Start the animation by calling the Animation method of the status bar.
            // Pass in 1 as the value of the first parameter, and a reference to an
            // animated icon as the value of the second parameter.
            SvcStatusBar.Animation(1, ref icon);

            System.Windows.Forms.MessageBox.Show(
                "Click OK to end status bar animation.");

            // Stop the animation by calling the Animation method of the status bar.
            // Pass in 0 as the value of the first parameter, and a reference to the
            // animated icon as the value of the second parameter.
            SvcStatusBar.Animation(0, ref icon);
        }