New with the v16 release, Spread.NET fully supports worksheet protection options being set in the user interface with a new Excel-like Protect Sheet Dialog. This allows users to implement the Protect method during runtime through the UI; users can also specify the worksheet protection options and set an optional password. The dialog can be accessed through the Spread.NET Tab Strip’s context menu, or invoked programmatically using the API.
Access the Protect Sheet Dialog During Runtime
End-users can access the Protect Sheet Dialog during runtime from the Spread.NET Tab Strip’s context menu options. The context menu must be set to be Editable like so:
C#
VB.NET
With the Tab Strip set to be Editable, users can access the Protect Sheet Dialog by right-clicking on the worksheets tab, and selecting Protect Sheet from the worksheet tab areas context menu, as seen here:

Programmatically Invoke the Protect Sheet Dialog During Runtime
Developers can invoke the Protect Sheet Dialog programmatically during runtime using the ProtectSheetDialog class and the showDialog method (Inherited from System.Windows.Forms.Form).
Check out the Spread.NET WinForms Demo Explorer’s Protection Dialog sample which shows the built-in worksheet protection dialog with protection options and an optional password.
Below is a code snippet from the above-mentioned Protection Dialog sample. The code logic in OnProtectSheetMenuItemClick shows how to show the ProtectSheetDialog for the instance of FpSpread using ShowDialog (this dialog should show a modal).
C#
VB.NET