日期:2014-05-17 浏览次数:21089 次
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = picName;//这里设置的是图片目录,怎么打开PictureBox中的图片呢?
process.StartInfo.Arguments = "rundll32.exe C:\\WINDOWS\\system32\\shimgvw.dll,ImageView_Fullscreen";
process.StartInfo.UseShellExecute = true;
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
process.Start();
process.Close();
private void listBox2_SelectedIndexChanged(object sender, EventArgs e)
{
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = @"d:\images\"+listBox2.SelectedItem.ToString();//这里设置的是图片目录,怎么打开PictureBox中的图片呢?
process.StartInfo.Arguments&nb