C# 通过单击picturebox1 c在windows照片查看器中打开图像#

C# 通过单击picturebox1 c在windows照片查看器中打开图像#,c#,windows,image,picturebox,C#,Windows,Image,Picturebox,我有一个与SQlite数据库项目。我将图像保存在文件夹“pics”(到debug文件夹中)中,并将其名称保存在数据库中(列“docpic”)。当我在一行中单击时,相关图像从数据库检索图像到picturebox1。我想通过单击picturebox1通过windows照片查看器打开图像(在picturebox1中)。 你怎么能做到这一点 我在picturebox1单击事件中使用此代码,但这不起作用: if (pictureBox1.Tag != null) { System.Diagnost

我有一个与SQlite数据库项目。我将图像保存在文件夹“pics”(到debug文件夹中)中,并将其名称保存在数据库中(列“docpic”)。当我在一行中单击时,相关图像从数据库检索图像到picturebox1。我想通过单击picturebox1通过windows照片查看器打开图像(在picturebox1中)。 你怎么能做到这一点

我在picturebox1单击事件中使用此代码,但这不起作用:

if (pictureBox1.Tag != null)
{
    System.Diagnostics.Process imageViewerProcess = new System.Diagnostics.Process();
    imageViewerProcess.StartInfo.CreateNoWindow = false;
    imageViewerProcess.StartInfo.FileName = "rundll32.exe";
    imageViewerProcess.StartInfo.Arguments =
            @"C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen "
                               + pictureBox1.Tag.ToString();
    imageViewerProcess.Start();
}

}

您知道它将在哪个Windows版本(如果是32/64位)上运行吗?我的Windows是64位的,您使用的是什么Windows?Windows XP、7、8、8.1、10?Windows 7 64位有人能帮忙吗?