VB Code:
  1. Private Declare Function PaintDesktop Lib "USER32" (ByVal HDC As Long) As Long
  2.  
  3. Private Sub Command1_Click()
  4.  PaintDesktop Me.HDC
  5. End Sub