|
-
Aug 21st, 2002, 06:09 PM
#1
Thread Starter
Member
How do I load an image from a resource file?
-
Aug 22nd, 2002, 08:52 AM
#2
Public rm As System.Resources.ResourceManager = New System.Resources.ResourceManager("Resourcename", System.Reflection.Assembly.GetExecutingAssembly())
rm.GetObject("imagename") will return the image
-
Sep 9th, 2002, 04:20 AM
#3
Junior Member
Storing GIF and JPG in resource files
Hello,
It seems to me that the standard resourced for VB.Net only know of BMP-files. I need to store GIF's and JPG's in a VB.Net application. Can you do this with resources? Do you know of any other ways on how to do this?
Thanks.
-
Sep 9th, 2002, 06:33 AM
#4
Frenzied Member
You can store any image format.
Dont gain the world and lose your soul
-
Sep 9th, 2002, 08:42 AM
#5
REsource will take any. Gif, JPg, Ico, etc.
do this
Dim a As New Image
a = CType(rm.GetObject("imagename"), Image)
a becomes an image object which can be any image format.
-
Sep 9th, 2002, 09:42 AM
#6
Junior Member
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
|