ive created a new picturebox with the image to be directed from my directory.
but it came be the case that the directory path will always be on my desktop.
how do i make the path not hard-coded?
pictureBox = new PictureBox();
pictureBox.Image = Image.FromFile(@"D:\Documents and Settings\12344\Desktop\Model Products 40x40 v2\Model Products 40x40\CCTV\CCTV1Button.jpg");
this shld not be the case. it shld not be hard-coded. the directory might not be in the place where i start the program.
could someone help and tell me how to set the directory path name when i had already pasted the whole image folder into my program's directory?
thank u. appreciated.