Click here to Skip to main content
15,903,203 members
Home / Discussions / C#
   

C#

 
AnswerRe: Query in DataSet/DataGridView Pin
I Believe In GOD25-Nov-09 9:06
I Believe In GOD25-Nov-09 9:06 
QuestionComparing Two PictureBox Pin
gamer112725-Nov-09 7:50
gamer112725-Nov-09 7:50 
AnswerRe: Comparing Two PictureBox Pin
Shameel25-Nov-09 8:07
professionalShameel25-Nov-09 8:07 
GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 8:15
gamer112725-Nov-09 8:15 
AnswerRe: Comparing Two PictureBox Pin
OriginalGriff25-Nov-09 8:14
mveOriginalGriff25-Nov-09 8:14 
GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 8:50
gamer112725-Nov-09 8:50 
GeneralRe: Comparing Two PictureBox Pin
harold aptroot25-Nov-09 9:01
harold aptroot25-Nov-09 9:01 
GeneralRe: Comparing Two PictureBox Pin
OriginalGriff25-Nov-09 10:39
mveOriginalGriff25-Nov-09 10:39 
As Harold says, same way as anything else: iterate through the bytes of the image and compare! Won't be quick though!
The MD5 suggestion is not bad - it should be quick, and it will identify non-identical pictures. It could however give false positives. If this is a game, then I assume you have a limited number of different pictures? Take the MD5 hash of each of them and modify the pictures to ensure they all have different MD5 hashes. Then use the MD5 to identify whether the picture is the same, or not. Moves the processing work to offline, so it doesn't become noticable at run time.

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

"Rumour has it that if you play Microsoft CDs backwards you will hear Satanic messages.Worse still, is that if you play them forwards they will install Windows"

GeneralRe: Comparing Two PictureBox Pin
gamer112725-Nov-09 18:29
gamer112725-Nov-09 18:29 
GeneralRe: Comparing Two PictureBox Pin
OriginalGriff25-Nov-09 21:58
mveOriginalGriff25-Nov-09 21:58 
AnswerRe: Comparing Two PictureBox Pin
I Believe In GOD25-Nov-09 9:07
I Believe In GOD25-Nov-09 9:07 
QuestionToo many generics in code. Pin
CaptainSeeSharp25-Nov-09 7:48
CaptainSeeSharp25-Nov-09 7:48 
AnswerRe: Too many generics in code. Pin
Paulo Zemek25-Nov-09 7:57
Paulo Zemek25-Nov-09 7:57 
GeneralRe: Too many generics in code. [modified] Pin
CaptainSeeSharp25-Nov-09 8:18
CaptainSeeSharp25-Nov-09 8:18 
AnswerRe: Too many generics in code. Pin
Member 218499725-Nov-09 10:07
Member 218499725-Nov-09 10:07 
GeneralRe: Too many generics in code. Pin
CaptainSeeSharp25-Nov-09 10:44
CaptainSeeSharp25-Nov-09 10:44 
AnswerRe: Too many generics in code. Pin
PIEBALDconsult25-Nov-09 12:15
mvePIEBALDconsult25-Nov-09 12:15 
GeneralRe: Too many generics in code. Pin
Lutosław25-Nov-09 13:23
Lutosław25-Nov-09 13:23 
GeneralRe: Too many generics in code. Pin
PIEBALDconsult25-Nov-09 15:34
mvePIEBALDconsult25-Nov-09 15:34 
AnswerRe: Too many generics in code. Pin
Gideon Engelberth25-Nov-09 12:20
Gideon Engelberth25-Nov-09 12:20 
GeneralRe: Too many generics in code. Pin
CaptainSeeSharp25-Nov-09 13:50
CaptainSeeSharp25-Nov-09 13:50 
QuestionDrawing Windows window Pin
cdpace25-Nov-09 7:25
cdpace25-Nov-09 7:25 
AnswerRe: Drawing Windows window Pin
Paulo Zemek25-Nov-09 8:03
Paulo Zemek25-Nov-09 8:03 
GeneralRe: Drawing Windows window Pin
cdpace25-Nov-09 10:31
cdpace25-Nov-09 10:31 
GeneralRe: Drawing Windows window Pin
Paulo Zemek25-Nov-09 11:14
Paulo Zemek25-Nov-09 11:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.