嗨,再次我的問題,這次它與這段代碼相關,即時通訊使用Visual Studio Beta 2012,我似乎無法找到問題,如果你們可以幫助我生病感激Vb.net PRTSC(屏幕截圖) - 錯誤
Public Class Form1
Private Sub fullScreen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles fullScreen.Click
SendKeys.SendWait("^{PRTSC}")
Dim clip As IDataObject = Clipboard.GetDataObject()
If clip.GetDataPresent(GetType(System.Drawing.Bitmap)) Then
Dim screenCapture As Bitmap = CType(clip.GetData(GetType(System.Drawing.Bitmap)), Bitmap)
screenCapture.Save("C:\fullScreenCapture.bmp")
End If
Clipboard.Clear()
End Sub
End Class
錯誤:
A first chance exception of type 'System.Runtime.InteropServices.ExternalException' occurred in System.Drawing.dll
其他信息:錯誤genéricoEN GDI +。
如果有這種異常的處理程序,程序可能會安全地繼續。
聰明,樂於助人ty :) – 2012-07-13 09:35:07