Hi,
I'm having an issue with some code I'm trying to write that takes a screenshot of the current screen and saves it to a bitmap file on my local PC.
vb.net Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles Button1.Click Dim tempScreenshot = New Bitmap(Screen.PrimaryScreen.Bounds.Width, _ Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb) tempScreenshot.Save("C:\test.bmp") End Sub
I'm running Windows 7, could there be some type of administrator issue? I don't get any errors ... can someone please help since this must be something simple.




Reply With Quote