Try this:

VB Code:
  1. ' Put this at the top of your form.
  2. Private Const WM_CLOSE As Long = &H10
  3. Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" ( _
  4.      ByVal hwnd As Long, _
  5.      ByVal wMsg As Long, _
  6.      ByVal wParam As Long, _
  7.      ByRef lParam As Any) As Long

And then to call:

VB Code:
  1. SendMessage Command1.hwnd, WM_CLOSE, 0, 0
  2. Me.Refresh

Where Command1 is the name of the control

Edit: that will not work because the Picturebox does not have a .hwnd s it is not a window its self...

Cheers,

RyanJ