1: 2: 3: 4: 5: 6:
Imports System.IO Public Shared Function GetResourceStream(ByVal resourceName As String) As MemoryStream Dim buffer As Byte() = CType(My.Resources.ResourceManager.GetObject(resourceName), Byte()) Return New MemoryStream(buffer) End Function