image.fromfile(...)

S

steve

imports system.drawing
imports system.drawing.image

dim img as image = image.fromfile("a.bmp")
picturebox1.image = img

i'm using vs 2003 and the error i have is that fromfile is not a member of
system.drawind.image...what gives?!?

tia,

steve
 
J

Jeremy Cowles

steve said:
imports system.drawing
imports system.drawing.image

dim img as image = image.fromfile("a.bmp")
picturebox1.image = img

i'm using vs 2003 and the error i have is that fromfile is not a member of
system.drawind.image...what gives?!?

Have you tried writing it out explicitly?

Dim Img as System.Drawing.Image = System.Drawing.Image.FromFile("a.bmp")

?

It may be a namespace conflict, or perhaps you don't have a reference to
System.Drawing in your project...

Jeremy
 
S

steve

yeah...it's wierd...i type system.drawing.image but after i type the final
period, intellisense does nothing...shows no members/methods/properties.

any ideas?

i do have a reference to system.drawing and am importing it in the
module/class where it's being called.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top