I'm dynamically creating a button control, and I'd like to add a background image from my resources thing to the button.
Now, I'm pretty sure it would be:
variable.BackgroundImage =but I don't know how to refer to an image that is in my project resources.
= Image.FromFile(My.Resources.myimage)but that gives error:Value of type 'System.Drawing.Bitmap' cannot be converted to 'String'.
EDIT: NEVERMIND, it was "my.resources.myimage" instead of "image.fromfile(my.resources.myimage)"
This post has been edited by JoshD: 14 July 2010 - 06:28 AM