Skip to content

pbAreDefaultContextMenusEnabled - cWebView2Browser

Controls whether the default browser context menu is being shown

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean pbAreDefaultContextMenusEnabled
Access Type Syntax
Read Access: Get pbAreDefaultContextMenusEnabled to BooleanVariable
Write Access: Set pbAreDefaultContextMenusEnabled to BooleanVariable/Value

Description

Controls whether the default browser context menu is being shown.

Setting this property to False will prevent the context menu from coming up on right click.

Note that changes to this property at runtime are only applied after the next page load.

Default: True