how do i release the object can u pls explain.

I need to open file as soon as it is created......

what i am doing is that........\
On click event of the button, a new file is created and the name of the file is same as the textbox.text on the form. "WORKING FINE"

Now to open the file i use the shell command..
Shell "C:\Program Files\Common Files\Microsoft Shared\MSPaper\MSPVIEW.EXE " & "c:\test.tif", vbMaximizedFocus
Here is the problem i get error message. "Unable to open file. Check filename and permission:.

If i reload the form and then use shell command agian its working fine.

Any suggestions.

thanx again