Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created December 29, 2015 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/787d91c542cae5c066fd to your computer and use it in GitHub Desktop.
Save bjoerntx/787d91c542cae5c066fd to your computer and use it in GitHub Desktop.
private void textControl1_SubTextPartEntered(object sender, SubTextPartEventArgs e)
{
if (e.SubTextPart.Name == "protected")
textControl1.EditMode = EditMode.ReadAndSelect;
}
private void textControl1_SubTextPartLeft(object sender, SubTextPartEventArgs e)
{
textControl1.EditMode = EditMode.Edit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment