Bitmap bmp = new Bitmap(pictureBox1.Width, pictureBox1.Height); 

Swears on picturebox1 - although it is on the form. Runtime NullReferenceException

  • Well, this fortune telling on the coffee grounds. I am sure that there is a banal typo somewhere, such as the picterbox ..... in the title of this question without a code to look at, without at least some sluggish screen can be closed - Alexey Shimansky
  • It depends on where your string is located. Maybe she before initialization? - VladD
  • If I put the code on GitHub you will not mind to help? - BadCatss
  • If this does not contradict the rules of SO ... - BadCatss
  • She is in the constructor - BadCatss

0