I’m having trouble loading an image from My.Resources. I have already tried a no. of codes like….:
-
PictureBox1.Image = My.Resources.Online_lime_icon;And -
PictureBox1.Image = CType(My.Resources.ResourceManager.GetObject("Online_lime_icon"), Image)
but it would still return:
Picturebox1.Image = Nothing
Try to convert it
ToBitMap()EDIT:
@user1615710 : My.Resources.Online_lime_icon doesn’t have .ToBitmap. It only has .ToString.
That means you’ve
Stringresource and I think it representsfileNamewith or without absolute path.Try to print/show the content of
My.Resources.Online_lime_iconIf it is real path then load the image via,