Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Drawing / August 2004

Tip: Looking for answers? Try searching our database.

GetImage Method Doesn't Seem To Exist

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kris - 23 Aug 2004 14:56 GMT
Hi All,

I'm trying to use the GetImage method in a ASP.NET project that I've created
but I keep getting an error stating:

The name 'GetImage' does not exist in the class or namespace ...

The project includes System.Drawing and I've even tried specifying the fully
qualified name System.Drawing.ToolboxBitmapAttribute.GetImage but the
IntelliSense feature doesn't even list the GetImage method when I enter the
period after ToolboxBitmapAttribute.

I checked MSDN and there is a reference to the GetImage method at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemdrawingtoolboxbitmapattributeclassgetimagetopic5.asp


I have to admit that I'm more than a little puzzled at the moment. Do any of
you gurus out there have any ideas?

Thanks,
Kris
Cecil Howell - 23 Aug 2004 19:34 GMT
Kris,
   The ToolboxBtmapAttribute class is an Attribute.  Attributes are
used to add meta-data to classes methods etc.  Attributes are not used
in your code like normal classes.  I assume you want to load an image
from the hard drive, try Image.FromFile or one of the other static
methods of the image class.

Cecil Howell
MCSD, MCT

> Hi All,
>
[quoted text clipped - 16 lines]
> Thanks,
> Kris
Kris - 26 Aug 2004 21:39 GMT
Thank-you very much for the response Cecil ... I did as you sugested and the
problem is solved.

Thanks Again,
Kris

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.