Manuel B

Manuel B

  • NA
  • 29
  • 0

c# databound picturebox.image should be opened by mspaint.exe or MS fax and image viewer

Feb 8 2009 1:21 PM

Hi,

I have a databound picturebox that gets its image from sql 2008 express.

Instead of having to code zoom and pic editing forms (which would not know how to anyway), I would simply like to know how to get my code to open the picturebox image directly into mspaint.exe or MS fax and image viewer.

I have this dbl click event but have no idea how to tell it to work on the picturebox contents. At the moment this simply opens an empty app. If I could learn how to do this it would teach me how to generally feed info into other apps...eg. text into word or excel.

Process p = new Process();

p.StartInfo.FileName = "rundll32.exe";

p.StartInfo.Arguments = @"c:\windows\system32\shimgvw.dll,ImageView_Fullscreen";

p.Start();

 

Thanks in advance