Here is an API Example.

VB Code:
  1. Const LR_LOADFROMFILE = &H10
  2. Const IMAGE_BITMAP = 0
  3. Const IMAGE_ICON = 1
  4. Const IMAGE_CURSOR = 2
  5. Const IMAGE_ENHMETAFILE = 3
  6. Const CF_BITMAP = 2
  7. Private Declare Function LoadImage Lib "user32" Alias "LoadImageA" (ByVal hInst As Long, ByVal lpsz As String, ByVal dwImageType As Long, ByVal dwDesiredWidth As Long, ByVal dwDesiredHeight As Long, ByVal dwFlags As Long) As Long
  8. Private Declare Function CloseClipboard Lib "user32" () As Long
  9. Private Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long
  10. Private Declare Function EmptyClipboard Lib "user32" () As Long
  11. Private Declare Function SetClipboardData Lib "user32" (ByVal wFormat As Long, ByVal hMem As Long) As Long
  12. Private Declare Function IsClipboardFormatAvailable Lib "user32" (ByVal wFormat As Long) As Long
  13. Private Sub Form_Load()
  14.     'KPD-Team 1999
  15.     'URL: [url]http://www.allapi.net/[/url]
  16.     'E-Mail: [email][email protected][/email]
  17.     Dim hDC As Long, hBitmap As Long
  18.     'Load the bitmap into the memory
  19.     hBitmap = LoadImage(App.hInstance, "c:\windows\logow.sys", IMAGE_BITMAP, 320, 200, LR_LOADFROMFILE)
  20.     If hBitmap = 0 Then
  21.         MsgBox "There was an error while loading the bitmap"
  22.         Exit Sub
  23.     End If
  24.     'open the clipboard
  25.     OpenClipboard Me.hwnd
  26.     'Clear the clipboard
  27.     EmptyClipboard
  28.     'Put our bitmap onto the clipboard
  29.     SetClipboardData CF_BITMAP, hBitmap
  30.     'Check if there's a bitmap on the clipboard
  31.     If IsClipboardFormatAvailable(CF_BITMAP) = 0 Then
  32.         MsgBox "There was an error while pasting the bitmap to the clipboard!"
  33.     End If
  34.     'Close the clipboard
  35.     CloseClipboard
  36.     'Get the picture from the clipboard
  37.     Me.Picture = Clipboard.GetData(vbCFBitmap)
  38. End Sub