Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the control mode of the form.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub SetFormMode ( _
mode As SPControlMode, _
forceSettingFormMlode As Boolean _
)
'Usage
Dim instance As SPFormContext
Dim mode As SPControlMode
Dim forceSettingFormMlode As Boolean
instance.SetFormMode(mode, forceSettingFormMlode)
public void SetFormMode(
SPControlMode mode,
bool forceSettingFormMlode
)
Parameters
mode
Type: Microsoft.SharePoint.WebControls.SPControlModeAn Microsoft.SharePoint.WebControls.SPControlMode value that specifies the control mode. Possible values include Display, Edit, Invalid, and New.
forceSettingFormMlode
Type: System.Booleantrue to implement the new control mode in the form even if the form contains controls that are in a different control mode; otherwise, false.