Hi.

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
Dadkhah

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)
        {
            if(chkbPrintScreen.Checked)
            {
                ThePicture.Image = Clipboard.GetImage();
               // ThePicture.SizeMode = PictureBoxSizeMode.StretchImage;
            }
            else{
                 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.
Thanks
Dadkhah