I need a function for PrtScr button, means: I called a function then this function can PrtScr button works, without pressing the button. And save this image in directory.

Tnx for your attention
Best Regards

Hello, you can use PictureBox to put the PrtScr image.
After the PrtScr is done you can put one CheckBox for user to say: Please attach the image on the form!.
There is the code for attaching image on PictureBox(After the PrtScr is done):

private void chkbPrintScreen_CheckedChanged(object sender, EventArgs e)
                ThePicture.Image = Clipboard.GetImage();
               // ThePicture.SizeMode = PictureBoxSizeMode.StretchImage;
                 ThePicture.Image = null;

And after the attach is done i think you will now have to insert it (in DB or in Directory).
Best regards,
Gezim (Kosovo)

Dear Gezim,
tnx for your reply and your lead,
but I don't want push the PrtScr button, I need a function that this function can PrtScr button works then what you said.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.