image.fromfile(...)

  • Thread starter Thread starter steve
  • Start date Start date
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
 
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
 
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.
 
Back
Top