I know whats doing it..
its this part..

VB Code:
  1. DC = CreateCompatibleDC(MainWindow.hdc)
  2.    
  3.     If DC < 1 Then
  4.         'Error: Can't create compatible DC
  5.         LoadDC = -1
  6.        
  7.         Exit Function
  8.     End If


Problem is I dont know what i am doing ...
I see this code in alot of examples..

The number is -dc .. so function exits.
if i comment out End Function it work ok..

Myabe the question should be why is it in there ?

Seahag