Allora come da titolo,come posso fare per fare un screenshot cliccando su una lettera della tastiera(questa lettera č definita in un textbox) e salvare l'immagine direttamente sul desktop?
Esempio cliccando su C fa lo screenshot e lo salva su desktop
P.s. per fare lo screenshot uso questo codice
codice:
Dim bounds As Rectangle
Dim screenshot As System.Drawing.Bitmap
Dim graphs As Graphics
bounds = Screen.PrimaryScreen.Bounds
screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
graphs = Graphics.FromImage(screenshot)
graphs.CopyFromScreen(bounds.X, bounds.Y, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)
(codice preso da internet,ditemi se č giusto)