Click here to Skip to main content
15,923,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: hashtable or Dictionary! Pin
PIEBALDconsult19-Apr-10 6:23
mvePIEBALDconsult19-Apr-10 6:23 
GeneralRe: hashtable or Dictionary! Pin
Jassim Rahma19-Apr-10 9:19
Jassim Rahma19-Apr-10 9:19 
AnswerRe: hashtable or Dictionary! Pin
dan!sh 19-Apr-10 6:00
professional dan!sh 19-Apr-10 6:00 
GeneralRe: hashtable or Dictionary! Pin
Jassim Rahma19-Apr-10 9:20
Jassim Rahma19-Apr-10 9:20 
AnswerRe: hashtable or Dictionary! Pin
PIEBALDconsult19-Apr-10 9:30
mvePIEBALDconsult19-Apr-10 9:30 
Questionsolution N-tier Pin
toto_201019-Apr-10 2:36
toto_201019-Apr-10 2:36 
AnswerMy Vote of 1 Pin
Keith Barrow19-Apr-10 2:39
professionalKeith Barrow19-Apr-10 2:39 
GeneralRe: My Vote of 1 Pin
toto_201019-Apr-10 5:47
toto_201019-Apr-10 5:47 
AnswerRe: solution N-tier Pin
Calla19-Apr-10 2:41
Calla19-Apr-10 2:41 
GeneralRe: solution N-tier Pin
Stanciu Vlad19-Apr-10 4:59
Stanciu Vlad19-Apr-10 4:59 
GeneralRe: solution N-tier Pin
Xmen Real 19-Apr-10 17:21
professional Xmen Real 19-Apr-10 17:21 
AnswerRe: solution N-tier Pin
Vimalsoft(Pty) Ltd19-Apr-10 3:41
professionalVimalsoft(Pty) Ltd19-Apr-10 3:41 
QuestionCheckboxes inside checklistbox Pin
Santhosh Sebastian Mattathil19-Apr-10 1:27
Santhosh Sebastian Mattathil19-Apr-10 1:27 
AnswerRe: Checkboxes inside checklistbox Pin
Anindya Chatterjee19-Apr-10 1:51
Anindya Chatterjee19-Apr-10 1:51 
GeneralRe: Checkboxes inside checklistbox Pin
Santhosh Sebastian Mattathil19-Apr-10 2:27
Santhosh Sebastian Mattathil19-Apr-10 2:27 
GeneralRe: Checkboxes inside checklistbox Pin
Stryder_119-Apr-10 3:08
Stryder_119-Apr-10 3:08 
AnswerRe: Checkboxes inside checklistbox Pin
PIEBALDconsult19-Apr-10 4:37
mvePIEBALDconsult19-Apr-10 4:37 
QuestionCompare picturebox.image with image from a resource file Pin
dizzyJ19-Apr-10 0:56
dizzyJ19-Apr-10 0:56 
AnswerRe: Compare picturebox.image with image from a resource file Pin
NavnathKale19-Apr-10 1:06
NavnathKale19-Apr-10 1:06 
GeneralRe: Compare picturebox.image with image from a resource file Pin
dizzyJ19-Apr-10 1:18
dizzyJ19-Apr-10 1:18 
AnswerRe: Compare picturebox.image with image from a resource file Pin
Anindya Chatterjee19-Apr-10 1:12
Anindya Chatterjee19-Apr-10 1:12 
GeneralRe: Compare picturebox.image with image from a resource file Pin
NavnathKale19-Apr-10 1:30
NavnathKale19-Apr-10 1:30 
GeneralRe: Compare picturebox.image with image from a resource file Pin
dizzyJ19-Apr-10 1:32
dizzyJ19-Apr-10 1:32 
Didn't work! This is what I got from your code example.

"Tarning1" is one picture in the resource file.
"bild" is the picture box name.
System.IO.MemoryStream ms1 = new System.IO.MemoryStream();
Bitmap pic1 = new Bitmap(bild.Image);
pic1.Save(ms1, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] byteArray1 = ms1.ToArray();

System.IO.MemoryStream ms2 = new System.IO.MemoryStream();
Bitmap pic2 = DicePictures.Tarning1;
pic2.Save(ms2, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] byteArray2 = ms2.ToArray();

if (byteArray1 == byteArray2)
    Console.WriteLine("Equal");
else
    Console.WriteLine("Not equal");


Did I miss something?
GeneralRe: Compare picturebox.image with image from a resource file Pin
Anindya Chatterjee19-Apr-10 1:45
Anindya Chatterjee19-Apr-10 1:45 
GeneralRe: Compare picturebox.image with image from a resource file Pin
dizzyJ19-Apr-10 2:03
dizzyJ19-Apr-10 2:03 

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.