Through the code below, we get a screenshot of the screen, but because of this code, when downloading from a Chrome browser, it swears that it is a malicious program . How can I fix it ?.

Bitmap screen; //в начале, нам надо получить размеры экрана. Rectangle screenDimensions = System.Windows.Forms.Screen.PrimaryScreen.Bounds; Size s = new Size(screenDimensions.Width, screenDimensions.Height); //и создать соответствующее пустое изображение. screen = new Bitmap(s.Width, s.Height); Graphics memoryGraphics = Graphics.FromImage(screen); //вуаля! делаем скриншот. memoryGraphics.CopyFromScreen(0, 0, 0, 0, s); //и сохраняем в файл. screen.Save(file_store, System.Drawing.Imaging.ImageFormat.Jpeg); 
  • And what do antiviruses say? The same virustotal? - Monk
  • Antivirus is clean. Virustotal is clean too - Sauron
  • Well, ignore the chrome, I do not see the problem. - Monk
  • But this file is being downloaded. Many people and they complain that they did not download. They have to go to the downloads in the browser and save even if the malicious file is clicked ... - Sauron
  • 2
    Any input-output operation, as well as interception of the keyboard, mouse, screen capture is considered as a potentially harmful action. Some programs / services / antiviruses suffer more paranoia than their other counterparts. It is a fact - accept it, your code has nothing to do with it. Gmail, for example, does not even check the danger of a binary file, but simply does not accept it as an attachment and everything, even in the archive, well, except that under the password, but I did not try .. - rdorn

0