System.Windows.Forms.Form.AllowTransparency Property

Gets or sets a value indicating whether the opacity of the form can be adjusted.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public bool AllowTransparency { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property is automatically set to true if the Opacity is changed. When the opacity of a form is set using the Opacity property, the form will layer objects on the form. If you set the Form.AllowTransparency property to false the form will not be in layered mode which will improve the display performance of the form.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0