Hi Dominique,
The general approach is to get the resource stream using
Assembly.GetMan ifestResourceSt ream with the full qualified name for the
resource (namespace.reso urcefile, case sensitive), and then you use the
image constructors that take a stream as input parameter:
Dim objStream As System.IO.Strea m
Dim objBitmap As System.Drawing. Bitmap
objStream =
System.Reflecti on.Assembly.Get ExecutingAssemb ly.GetManifestR esourceStream(r esourceNamespac e.resourceName)
objBitmap = New System.Drawing. Bitmap(objStrea m)
objStream.Close ()
VB 2005 offers the use of the methods of My.Resources.Re sourceManager.G etXXX
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"DG78" <DG**@community .nospam> escribió en el mensaje
news:eM******** ******@TK2MSFTN GP03.phx.gbl...
Hi,
In VB 2005, How to extract icons (or images or other resources) from a
file .resx, .resource, .dll or .exe and then to create a new file with
this resource (.ico, .jpg ..) ?
Thanks
Dominique