How do you convert a icon resource to a valid type for the Image property of a label?
Thanks for any help.
VB Code:
Imports System.IO.Stream '... '... Dim s As System.IO.Stream = Me.GetType.Assembly.GetManifestResourceStream("MyIcon.ico") Dim bmp As Icon = New Icon(s) 'Crashes here s.Close() Me.Label.Image = bmp.ToBitmap bmp.Dispose()





Reply With Quote