Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm using the following code to display an image from a file. However it doesn't work for some reason. Anyhelp out there?

 

Dtl_image.Image.FromFile(SelFileName)

 

Thanks,

Bernie

  • Leaders
Posted

Perhaps you are looking for this...

Dtl_image.Image = Image.FromFile(SelFileName)

You are calling the static method Imgae.FromFile from a reference to Dtl_image.Image, but doing nothing with the return result (such as storing it in Dtl_image.Image).

[sIGPIC]e[/sIGPIC]

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...