Glad to say that I found the answer to my problem. The following commands were causing "Object reference not set to an instance of an object".
I simply commented out the last two lines and the code now runs as expected.Code:dim application = Process.Start("C:\Photos\MyPhoto.jpg") application.WaitForInputIdle(1000) application.Refresh()




Reply With Quote