473,394 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

GetImage Method Doesn't Seem To Exist

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/de...magetopic5.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
Nov 18 '05 #1
2 1423
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
"Kris" <kr************@hotmail.com> wrote in message news:<#M**************@tk2msftngp13.phx.gbl>...
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/de...magetopic5.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

Nov 18 '05 #2
Thank-you very much for the response Cecil ... I did as you sugested and the
problem is solved.
Thanks Again,
Kris
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Greg Scharlemann | last post by:
I am attempting to upload a picture to a webserver and create a thumbnail from the picture uploaded. The problem comes in when I attempt to create an Image object from the File object (which is...
31
by: Chris S. | last post by:
Is there a purpose for using trailing and leading double underscores for built-in method names? My impression was that underscores are supposed to imply some sort of pseudo-privatization, but would...
20
by: Tim Martin | last post by:
Hi, I came across a detail in "C++ Gotchas" by Stephen Dewhurst that confused me a bit. The author states: 'C++ has no "methods." Java and Smalltalk have methods. When you talk about an...
39
by: Mark Johnson | last post by:
It doesn't seem possible. But would the following also seem a violation of the general notions behind css? You have a DIV, say asociated with class, 'topdiv'. Inside of that you have an anchor...
149
by: Christopher Benson-Manica | last post by:
(Followups set to comp.std.c. Apologies if the crosspost is unwelcome.) strchr() is to strrchr() as strstr() is to strrstr(), but strrstr() isn't part of the standard. Why not? --...
6
by: Killer42 | last post by:
Hi all. Does anyone know what has happened to the Print method on forms and picture boxes, in Vb6? I'm sure I've used it plenty of times, and the online help (MSDN library) lists it, but now it...
21
by: John Henry | last post by:
Hi list, I have a need to create class methods on the fly. For example, if I do: class Dummy: def __init__(self): exec '''def method_dynamic(self):\n\treturn self.method_static("it's...
3
by: MD | last post by:
Hi, I have a variable which is defined inside a class method. When I call PyModule_GetDict on the module containing this class, the dictionary doesn't contain any information about this...
4
by: Bali | last post by:
Hi I have an ascx control through which I am calling an aspx page using the following command. Page.ClientScript.RegisterStartupScript(GetType(), "test", "window.open(...)"); Initially I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.