vb.net 调用api Public Declare Function GetDC Lib "user32" Alias "GetDC" (ByVal hwnd As Integer) As Integer GetDC(Picturebox1.Hwnd) GetDC(Picturebox1.Handle) 类似VB中Picture的Picture1.hDC