I know whats doing it..
its this part..
VB Code:
DC = CreateCompatibleDC(MainWindow.hdc) If DC < 1 Then 'Error: Can't create compatible DC LoadDC = -1 Exit Function 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




Reply With Quote