Hi all
I've just joined, so i'm not sure what correct etiquette is and whether I'm even posting in the right place, but heres my problem:
I have a simple program that loads a bitmap into a picturebox if the answer given in the cbo was correct. I was using:
strTick = "H:\pics\tick.bmp"
imgAnswer1.Image = System.Drawing.Image.FromFile(strTick)
I realise the problem is the path is hard coded and therefore the exe cannot find the bitmaps - I'm wanting to fix this, so students can use just the exe.
After referring to msdn i've embedded bitmaps, but keep getting an internal error.
Could someone pls suggest the best way for a novice to do this!
Thanks heaps
I've just joined, so i'm not sure what correct etiquette is and whether I'm even posting in the right place, but heres my problem:
I have a simple program that loads a bitmap into a picturebox if the answer given in the cbo was correct. I was using:
strTick = "H:\pics\tick.bmp"
imgAnswer1.Image = System.Drawing.Image.FromFile(strTick)
I realise the problem is the path is hard coded and therefore the exe cannot find the bitmaps - I'm wanting to fix this, so students can use just the exe.
After referring to msdn i've embedded bitmaps, but keep getting an internal error.
Could someone pls suggest the best way for a novice to do this!
Thanks heaps