oommffgg... it most likly mean hprocess is not declared...In VB6.0 you could call memory without it being declared, as in .net it must be declared. Put Public hprocess as long at the top fo your module