none
如何将截图存到指定文件夹,例如C盘 新建文件夹,截屏代码如下 RRS feed

  • 问题

  • Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

            Me.Hide()
            Dim p1 As New Point(0, 0)
            Dim p2 As New Point(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height)
            Dim pic As New Bitmap(p2.X, p2.Y)
            Using g As Graphics = Graphics.FromImage(pic)
                Me.BackgroundImage = pic
            End Using
            Me.Show()

        End Sub

    同时截图时会把BOTTON1截图进去,,这个怎么防止,谢谢。

    2015年3月23日 8:06

答案