ユーザーがアプリケーション内またはその外で何かをクリックし、スクリーンショットを作成してjpegとしてフォルダーに保存するときに、このプログラムが必要です
これは、これらのオプションを入れたいコードです。
Imports System.Net.Mail
Public Class Form1
Private Function TakeImage()
Return TakeImage(0, 0, Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height)
End Function
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
PictureBox1.Image = CType(TakeImage(), Image)
End Sub
End Class
ちなみにVB.NET初心者です