Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Why doesn't this work? When I run the program, there is nothing where the image is supposed to be.

 

Dim label1 As New Label
Dim image1 As Image
image1 = Image.FromFile("F:\FFgm\back.bmp")
label1.Size = image1.Size
label1.Image = image1

To err is human, to really foul things up requires a computer.
  • *Experts*
Posted
You are creating a new label and not adding it to the form's control collection. The image shouldnt be a problem but the label itself is not visible.
  • 1 month later...
Posted
Adding the image to the label was simply with VB.NET. I simply choose the image properties of the label. Then selected browse. Then find the path to the icons. It is pretty long, but was something like c:\Program Files\VB Studio.net\common 7\graphics\assorted. That out to get you close enough to find them. You may want to choose the thumbnail veiw to see what they look like. Hope this helps.

Looking to expand my VB.Net knowledge.

 

Jblake00

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...