Hi all
please help me to find solution
following is the function i used to show the tif images on form, My problem is if there are spaces between the image name it generates the error,
can anybody please suggest me what should i do
Code:bool displayimage(string imgname) { string imgpath; imgpath = this.textBox2.Text.Trim(); imgname = imgpath +@imgname; Bitmap oSourceBitmap, oThumbBitmap; oSourceBitmap = new Bitmap (imgname); oThumbBitmap = new Bitmap (oSourceBitmap,751,355); this.pictureBox1.Image = oThumbBitmap; return true ; }




Reply With Quote