none
FAQ: 1.1 How do I specify the text on the statusbar of Visual Studio?

Answers

  • In VSPackage, you can specify the statusbar through the service SVsStatusbar.

     

    Code Sample:

    IVsStatusbar statusBar = (IVsStatusbar)GetService(typeof(SVsStatusbar));

    int frozen;

     

    statusBar.IsFrozen(out frozen);

     

    if (frozen == 0)

    {

        // Set the status bar text and freeze its display. 

        statusBar.SetText("Here is a text on status bar.");

        statusBar.FreezeOutput(1);

     

        // Get the status bar text. 

        string text;

        statusBar.GetText(out text);

        System.Windows.Forms.MessageBox.Show(text);

     

        // Clear the status bar text. 

        statusBar.FreezeOutput(0);

        statusBar.SetText("");

    }

     

    Related Threads:

    http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/fb150843-a9e1-484d-a284-3721154eff41
    • Marked as answer by MSDN FAQ Wednesday, May 05, 2010 9:35 AM
    Wednesday, May 05, 2010 9:16 AM