Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created July 17, 2015 16:31
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/3b1312cc38e6dd9cd0fe to your computer and use it in GitHub Desktop.
Save bjoerntx/3b1312cc38e6dd9cd0fe to your computer and use it in GitHub Desktop.
private int iNumberOfPages = 1;
// update the watermarks if the number of pages are different
private void textControl1_Changed(object sender, EventArgs e)
{
if (textControl1.Pages > iNumberOfPages)
{
InsertWatermarkImages();
iNumberOfPages = textControl1.Pages;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment