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;
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
c# image list
marked as duplicate by Selvin, SᴇM, sujith karivelil
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.
add a comment |
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
c# image list
marked as duplicate by Selvin, SᴇM, sujith karivelil
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
add a comment |
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
c# image list
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
c# image list
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
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
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
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
|
show 1 more comment
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
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
|
show 1 more comment
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.
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
|
show 1 more comment
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.
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.
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
|
show 1 more comment
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
|
show 1 more comment
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