|
-
Jan 20th, 2010, 08:49 PM
#1
Thread Starter
Addicted Member
Setting the path of image file..In Code
I'm been a while since i use this VB2008, now i forgot the right syntax
Can you help me how can i put a code on how to set the path of an image..
Ex:
Code:
MainPicture.Image = Image.FromFile("D:\A.RODNEY DOCUMENTS\Microsoft Basic\Gasoline Station DB\Gasoline Station DB\Pics\MainMenuSignUp(203,252).png")
something like that,
SO hard that to transfer my project files into the other PC without VB2008
and not working the path cause they need to change it the path again for changes.
what i want is:
Is there a code for automatically read the specific path so that can transfer my project files in other drive or PC without changing the path...
Last edited by morkie; Jan 20th, 2010 at 10:10 PM.
-
Jan 20th, 2010, 09:10 PM
#2
Re: Setting the path of image file..In Code
Is there a code for automatically read the specific path so that can transfer my project files in other drive or PC without changing the path...
the easiest way to do that is to add the image to your project as a resource. Then you can access the image in code using My.Resource.resourcename
kevin
Process control doesn't give you good quality, it gives you consistent quality.
Good quality comes from consistently doing the right things.
Vague general questions have vague general answers. A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.
______________________________ Last edited by kebo : Now. Reason: superfluous typo's
-
Jan 20th, 2010, 09:17 PM
#3
Thread Starter
Addicted Member
Re: Setting the path of image file..In Code
Oh, That's it...
I'll remeber now...
using the resource
I Forgot that....
Hope this work..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|