Jump to content
Forum Windows-az.com

Screenshot


On_LiNe

Recommended Posts

083e77f44097.jpg

Foruma bir ədəd button əlavə edin. Sora buttona 2 defe klik vurub bu kodu yazın.Qeyd edimki ekranı çəkəndə proqram özü düşməyəcək.
Kod:
Try
Dim path As String = Nothing
Dim SaveFileDialog1 As New SaveFileDialog
With SaveFileDialog1
If .ShowDialog = DialogResult.OK Then
path = .FileName
End If
End With

Dim DirectoryA As String = path & ".jpg"
Dim ScreenSize As Size = New Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim BMP As New Bitmap(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)
Dim g As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(BMP)
g.CopyFromScreen(New Point(0, 0), New Point(0, 0), ScreenSize)
BMP.Save(DirectoryA)
MsgBox("Yadda Saxlanıldı " & DirectoryA, MsgBoxStyle.Information)
Catch ex As System.Exception
MsgBox(ex.Message)
End Try

Link to comment
Share on other sites

Proqramlar telegramda
  • 2 ay sonra...

Sohbete katıl

Şimdi mesajını gönderebilir ve daha sonra kayıt olabilirsin. Bir hesabın varsa, hesabınla göndermek için şimdi oturum aç.

Misafir
Bu konuya yanıt ver...

×   Zengin metin olarak yapıştırıldı.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Önceki içeriğiniz geri yüklendi.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • loading...
×
×
  • Create New...