Embedding XML in DLL

  • Thread starter Thread starter Michael Persaud
  • Start date Start date
M

Michael Persaud

Hi All,

I was wondering if i can embed an xml file in a vb.net app so that i dont
have to install it as an external file. if this is possible please let me
know how to proceed.

Thanks
Michael
 
Yes. Just add it to the project and in the Properties Window select Build
Action = Embedded Resource. To retrieve its stream at run time, you use
Assembly.GetManifestResourceStream(). Check the docs about this function.
--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
 
Back
Top