how can I add a list of images in a class? [duplicate] Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!I'm getting the “missing a using directive or assembly reference” and no clue what's going wrongHow do I check if a list is empty?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow do you split a list into evenly sized chunks?How to make a flat list out of list of listsHow do I get the number of elements in a list in Python?How do I concatenate two lists in Python?How can I count the occurrences of a list item?How to clone or copy a list?Why not inherit from List<T>?

How can I save and copy a screenhot at the same time?

Tips to organize LaTeX presentations for a semester

Caught masturbating at work

The test team as an enemy of development? And how can this be avoided?

If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?

Is CEO the "profession" with the most psychopaths?

Monty Hall Problem-Probability Paradox

What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?

License to disallow distribution in closed source software, but allow exceptions made by owner?

Can an iPhone 7 be made to function as a NFC Tag?

Why is it faster to reheat something than it is to cook it?

AppleTVs create a chatty alternate WiFi network

Is it dangerous to install hacking tools on my private linux machine?

GDP with Intermediate Production

Was Kant an Intuitionist about mathematical objects?

A proverb that is used to imply that you have unexpectedly faced a big problem

"klopfte jemand" or "jemand klopfte"?

Random body shuffle every night—can we still function?

How to write capital alpha?

Delete free apps from library

what is the log of the PDF for a Normal Distribution?

The Nth Gryphon Number

Is there hard evidence that the grant peer review system performs significantly better than random?

Asymptotics question



how can I add a list of images in a class? [duplicate]



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!I'm getting the “missing a using directive or assembly reference” and no clue what's going wrongHow do I check if a list is empty?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow do you split a list into evenly sized chunks?How to make a flat list out of list of listsHow do I get the number of elements in a list in Python?How do I concatenate two lists in Python?How can I count the occurrences of a list item?How to clone or copy a list?Why not inherit from List<T>?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1
















This question already has an answer here:



  • I'm getting the “missing a using directive or assembly reference” and no clue what's going wrong

    6 answers



ATTENTION: The class is in a my external DLL implemented in my project.
Inside my class library there is this class Annuncio
with a list inside.
The list must contain images, but my code gives me an error.



using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace BuyNowDLL

class Annuncio

public List<Image> Images1 = new List<Image>(); //Make me error (Image)




How can I fix it?



enter image description here










share|improve this question















marked as duplicate by Selvin, SᴇM, sujith karivelil c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Mar 22 at 12:04


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • What is the error message?

    – Bogdan Doicin
    Mar 22 at 11:55











  • How could we possibly answer this without knowing what the error is?

    – rory.ap
    Mar 22 at 11:57











  • Sorry, I'm new in. The errore is: the type or namespace name 'Image' was not found. Probably missing a directive using or assembly reference. @BogdanDoicin

    – jck91
    Mar 22 at 12:00


















-1
















This question already has an answer here:



  • I'm getting the “missing a using directive or assembly reference” and no clue what's going wrong

    6 answers



ATTENTION: The class is in a my external DLL implemented in my project.
Inside my class library there is this class Annuncio
with a list inside.
The list must contain images, but my code gives me an error.



using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace BuyNowDLL

class Annuncio

public List<Image> Images1 = new List<Image>(); //Make me error (Image)




How can I fix it?



enter image description here










share|improve this question















marked as duplicate by Selvin, SᴇM, sujith karivelil c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Mar 22 at 12:04


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • What is the error message?

    – Bogdan Doicin
    Mar 22 at 11:55











  • How could we possibly answer this without knowing what the error is?

    – rory.ap
    Mar 22 at 11:57











  • Sorry, I'm new in. The errore is: the type or namespace name 'Image' was not found. Probably missing a directive using or assembly reference. @BogdanDoicin

    – jck91
    Mar 22 at 12:00














-1












-1








-1









This question already has an answer here:



  • I'm getting the “missing a using directive or assembly reference” and no clue what's going wrong

    6 answers



ATTENTION: The class is in a my external DLL implemented in my project.
Inside my class library there is this class Annuncio
with a list inside.
The list must contain images, but my code gives me an error.



using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace BuyNowDLL

class Annuncio

public List<Image> Images1 = new List<Image>(); //Make me error (Image)




How can I fix it?



enter image description here










share|improve this question

















This question already has an answer here:



  • I'm getting the “missing a using directive or assembly reference” and no clue what's going wrong

    6 answers



ATTENTION: The class is in a my external DLL implemented in my project.
Inside my class library there is this class Annuncio
with a list inside.
The list must contain images, but my code gives me an error.



using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace BuyNowDLL

class Annuncio

public List<Image> Images1 = new List<Image>(); //Make me error (Image)




How can I fix it?



enter image description here





This question already has an answer here:



  • I'm getting the “missing a using directive or assembly reference” and no clue what's going wrong

    6 answers







c# image list






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 12:49







jck91

















asked Mar 22 at 11:52









jck91jck91

61




61




marked as duplicate by Selvin, SᴇM, sujith karivelil c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Mar 22 at 12:04


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by Selvin, SᴇM, sujith karivelil c#
Users with the  c# badge can single-handedly close c# questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Mar 22 at 12:04


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • What is the error message?

    – Bogdan Doicin
    Mar 22 at 11:55











  • How could we possibly answer this without knowing what the error is?

    – rory.ap
    Mar 22 at 11:57











  • Sorry, I'm new in. The errore is: the type or namespace name 'Image' was not found. Probably missing a directive using or assembly reference. @BogdanDoicin

    – jck91
    Mar 22 at 12:00


















  • What is the error message?

    – Bogdan Doicin
    Mar 22 at 11:55











  • How could we possibly answer this without knowing what the error is?

    – rory.ap
    Mar 22 at 11:57











  • Sorry, I'm new in. The errore is: the type or namespace name 'Image' was not found. Probably missing a directive using or assembly reference. @BogdanDoicin

    – jck91
    Mar 22 at 12:00

















What is the error message?

– Bogdan Doicin
Mar 22 at 11:55





What is the error message?

– Bogdan Doicin
Mar 22 at 11:55













How could we possibly answer this without knowing what the error is?

– rory.ap
Mar 22 at 11:57





How could we possibly answer this without knowing what the error is?

– rory.ap
Mar 22 at 11:57













Sorry, I'm new in. The errore is: the type or namespace name 'Image' was not found. Probably missing a directive using or assembly reference. @BogdanDoicin

– jck91
Mar 22 at 12:00






Sorry, I'm new in. The errore is: the type or namespace name 'Image' was not found. Probably missing a directive using or assembly reference. @BogdanDoicin

– jck91
Mar 22 at 12:00













1 Answer
1






active

oldest

votes


















0














Your code does not have any errors, it is because you have not referenced the System.Drawing.dll



Right click on the project name in the solution explorer, and click on Add > Reference



then choose check System.Drawing in the list of Assemblies.



enter image description here



enter image description here






share|improve this answer























  • Sorry I haven't read that comment

    – sujith karivelil
    Mar 22 at 12:04











  • no problem. happens ;)

    – Ashkan Mobayen Khiabani
    Mar 22 at 12:05











  • Ok, but the class is inside my dll. How can I add references to it? @AshkanMobayenKhiabani

    – jck91
    Mar 22 at 12:10












  • You have imported the namespace (using System.Drawing;) just follow the step to add the reference to the dll.

    – Ashkan Mobayen Khiabani
    Mar 22 at 12:13











  • But the node References there isn't. Please can you look the image in my question @AshkanMobayenKhiabani

    – jck91
    Mar 22 at 12:50

















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Your code does not have any errors, it is because you have not referenced the System.Drawing.dll



Right click on the project name in the solution explorer, and click on Add > Reference



then choose check System.Drawing in the list of Assemblies.



enter image description here



enter image description here






share|improve this answer























  • Sorry I haven't read that comment

    – sujith karivelil
    Mar 22 at 12:04











  • no problem. happens ;)

    – Ashkan Mobayen Khiabani
    Mar 22 at 12:05











  • Ok, but the class is inside my dll. How can I add references to it? @AshkanMobayenKhiabani

    – jck91
    Mar 22 at 12:10












  • You have imported the namespace (using System.Drawing;) just follow the step to add the reference to the dll.

    – Ashkan Mobayen Khiabani
    Mar 22 at 12:13











  • But the node References there isn't. Please can you look the image in my question @AshkanMobayenKhiabani

    – jck91
    Mar 22 at 12:50















0














Your code does not have any errors, it is because you have not referenced the System.Drawing.dll



Right click on the project name in the solution explorer, and click on Add > Reference



then choose check System.Drawing in the list of Assemblies.



enter image description here



enter image description here






share|improve this answer























  • Sorry I haven't read that comment

    – sujith karivelil
    Mar 22 at 12:04











  • no problem. happens ;)

    – Ashkan Mobayen Khiabani
    Mar 22 at 12:05











  • Ok, but the class is inside my dll. How can I add references to it? @AshkanMobayenKhiabani

    – jck91
    Mar 22 at 12:10












  • You have imported the namespace (using System.Drawing;) just follow the step to add the reference to the dll.

    – Ashkan Mobayen Khiabani
    Mar 22 at 12:13











  • But the node References there isn't. Please can you look the image in my question @AshkanMobayenKhiabani

    – jck91
    Mar 22 at 12:50













0












0








0







Your code does not have any errors, it is because you have not referenced the System.Drawing.dll



Right click on the project name in the solution explorer, and click on Add > Reference



then choose check System.Drawing in the list of Assemblies.



enter image description here



enter image description here






share|improve this answer













Your code does not have any errors, it is because you have not referenced the System.Drawing.dll



Right click on the project name in the solution explorer, and click on Add > Reference



then choose check System.Drawing in the list of Assemblies.



enter image description here



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 22 at 11:58









Ashkan Mobayen KhiabaniAshkan Mobayen Khiabani

23.5k1868125




23.5k1868125












  • Sorry I haven't read that comment

    – sujith karivelil
    Mar 22 at 12:04











  • no problem. happens ;)

    – Ashkan Mobayen Khiabani
    Mar 22 at 12:05











  • Ok, but the class is inside my dll. How can I add references to it? @AshkanMobayenKhiabani

    – jck91
    Mar 22 at 12:10












  • You have imported the namespace (using System.Drawing;) just follow the step to add the reference to the dll.

    – Ashkan Mobayen Khiabani
    Mar 22 at 12:13











  • But the node References there isn't. Please can you look the image in my question @AshkanMobayenKhiabani

    – jck91
    Mar 22 at 12:50

















  • Sorry I haven't read that comment

    – sujith karivelil
    Mar 22 at 12:04











  • no problem. happens ;)

    – Ashkan Mobayen Khiabani
    Mar 22 at 12:05











  • Ok, but the class is inside my dll. How can I add references to it? @AshkanMobayenKhiabani

    – jck91
    Mar 22 at 12:10












  • You have imported the namespace (using System.Drawing;) just follow the step to add the reference to the dll.

    – Ashkan Mobayen Khiabani
    Mar 22 at 12:13











  • But the node References there isn't. Please can you look the image in my question @AshkanMobayenKhiabani

    – jck91
    Mar 22 at 12:50
















Sorry I haven't read that comment

– sujith karivelil
Mar 22 at 12:04





Sorry I haven't read that comment

– sujith karivelil
Mar 22 at 12:04













no problem. happens ;)

– Ashkan Mobayen Khiabani
Mar 22 at 12:05





no problem. happens ;)

– Ashkan Mobayen Khiabani
Mar 22 at 12:05













Ok, but the class is inside my dll. How can I add references to it? @AshkanMobayenKhiabani

– jck91
Mar 22 at 12:10






Ok, but the class is inside my dll. How can I add references to it? @AshkanMobayenKhiabani

– jck91
Mar 22 at 12:10














You have imported the namespace (using System.Drawing;) just follow the step to add the reference to the dll.

– Ashkan Mobayen Khiabani
Mar 22 at 12:13





You have imported the namespace (using System.Drawing;) just follow the step to add the reference to the dll.

– Ashkan Mobayen Khiabani
Mar 22 at 12:13













But the node References there isn't. Please can you look the image in my question @AshkanMobayenKhiabani

– jck91
Mar 22 at 12:50





But the node References there isn't. Please can you look the image in my question @AshkanMobayenKhiabani

– jck91
Mar 22 at 12:50





Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript