Is it possible to change a colored form to grayscale temporarily?

Hi, I just have an application that show many forms at the same time so in order to keep the users concentrated on the main form, I want to change the other forms to be grayscale temporarily and change them back later.

Anyone has got idea how to do this




Answer this question

Is it possible to change a colored form to grayscale temporarily?

  • Tomas

    Place a panel and change the Dock property to Fill.

    On the forms Activated event you add

    panel1.Enabled = true;

    In the Deactivate event you add

    panel1.Enabled = false;

    This will gray out all controls in panel1 (that contains all controls of the form) whenever it loses focus and enable them as soon as it gets focus.



  • Is it possible to change a colored form to grayscale temporarily?