Cause
This error occurs when the value of the property is not valid for the window or for the window in a specific state; for example, setting the
Action
Check the documentation for the valid values for that property and then change your application code accordingly.