Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic way to reach a folder in project!? (Read 5008 times)
lemon
YaBB Newbies
*
Offline



Posts: 28
Joined: Aug 31st, 2005
way to reach a folder in project!?
Sep 13th, 2005 at 8:48am
Print Post  
Hi,

how can I reach my image folder in my project?

IconBox.Picture = Image.FromFile("xx")?

"Images/ImageName.png" doesn't work

thx
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: way to reach a folder in project!?
Reply #1 - Sep 13th, 2005 at 9:42am
Print Post  
Do you mean from a folder in the file system where your exe is ? or from image files embedded as resources in the project ?
  
Back to top
 
IP Logged
 
lemon
YaBB Newbies
*
Offline



Posts: 28
Joined: Aug 31st, 2005
Re: way to reach a folder in project!?
Reply #2 - Sep 13th, 2005 at 9:49am
Print Post  
yes my folder in my file system, which I have attached to my project
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: way to reach a folder in project!?
Reply #3 - Sep 13th, 2005 at 10:06am
Print Post  
You could use Process.GetCurrentProcess().MainModule to get the full path to your exe. Parse that to the last '\' and append the image file name to get the full path to it.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint