Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPFormContext Class
 SetFormMode Method

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
SPFormContext.SetFormMode Method (Microsoft.SharePoint)
Sets the control mode of the form.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public Sub SetFormMode ( _
    mode As SPControlMode, _
    forceSettingFormMlode As Boolean _
)
Visual Basic (Usage)
Dim instance As SPFormContext
Dim mode As SPControlMode
Dim forceSettingFormMlode As Boolean

instance.SetFormMode(mode, forceSettingFormMlode)
C#
public void SetFormMode (
    SPControlMode mode,
    bool forceSettingFormMlode
)

Parameters

mode

An Microsoft.SharePoint.WebControls.SPControlMode value that specifies the control mode. Possible values include Display, Edit, Invalid, and New.

forceSettingFormMlode

true to implement the new control mode in the form even if the form contains controls that are in a different control mode; otherwise, false.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker