Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27226

VS 2010 [RESOLVED] Process starts but returns zero

$
0
0
Hi All,
I am trying to grab the handle of a .jpg document so that I can place it on a form. The following line of code returns zero even though the image files opens up in Windows Photo Viewer.

Code:

dim p as Process = Process.start("MyPhoto.jpg")
The line of code works without problems when starting other Windows applications. Is Windows Photo Viewer not a process? Are there situations where an application starts without creating an instance of a process?

Please, help explain what is going on. Thanks.

Viewing all articles
Browse latest Browse all 27226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>