0

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

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by Dadkhah
0

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)

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.