GetManifestResourceStream: Use an included file in your project.
You can easily use embedded files in your project.
 |
As you see, I included an image called card.gif into my project. I can now use this image at runtime in my application.
Dim thisExe As System.Reflection.Assembly
thisExe = System.Reflection.Assembly.GetExecutingAssembly()
Dim file As System.IO.Stream = thisExe.GetManifestResourceStream(thisExe.GetName.Name & ".Card.gif")
PictureBox1.Image = Image.FromStream(file) |
Next week I will post an entire cardslibrary component. It will include all 52 cards. (From Ace to King)
- Ken