c# - How to tackle the Out Of Memory Exception Error? -


i have created button can upload pic files doc files , pdf files in system. here code following:

        if (dlg.showdialog() == dialogresult.ok)         {              picturebox2.image = image.fromfile(dlg.filename);              picturebox2.sizemode = pictureboxsizemode.zoom;             currentfilename = dlg.filename;             button2.enabled = true;          }      } 

but have error poping out when want upload doc files. first of possible upload doc file? if yes, have issues showing out of memory in following line of code

picturebox2.image = image.fromfile(dlg.filename); 

picturebox control used showing images in winform application (take @ msdn). show .doc file contents in application have use word or workaround (like posted here)


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -