Click here to Skip to main content
15,891,777 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Compare picturebox.image with image from a resource file Pin
Anindya Chatterjee19-Apr-10 1:45
Anindya Chatterjee19-Apr-10 1:45 
Some remarks for your code.

1. Use Image class directly instead of Bitmap. And don't use Jpeg format use MemoryBmp, it will ease byte comparing.

bild.Image.Save(ms1, System.Drawing.Imaging.ImageFormat.MemoryBmp);


2. Don't use

if(byteArray1 == byteArray2)


coz you are doing the same wrong thing again. I told you to compare byte by byte using looping like as follows

if(byteArray1.Length == byteArray2.Length)
{
   for(int i = 0; i < byteArray1.Length; i++)
   {
      if(byteArray1[i] != byteArray2[i])
         return false;
   }
   return true;
}
return false;


Hope this will give you the desired result.

GeneralRe: Compare picturebox.image with image from a resource file Pin
dizzyJ19-Apr-10 2:03
dizzyJ19-Apr-10 2:03 
GeneralRe: Compare picturebox.image with image from a resource file Pin
Anindya Chatterjee19-Apr-10 2:50
Anindya Chatterjee19-Apr-10 2:50 
GeneralRe: Compare picturebox.image with image from a resource file Pin
dizzyJ19-Apr-10 3:07
dizzyJ19-Apr-10 3:07 
AnswerRe: Compare picturebox.image with image from a resource file Pin
sadiq_arbaoui17-Jan-11 23:07
sadiq_arbaoui17-Jan-11 23:07 
QuestionManipulate XML Pin
NarVish18-Apr-10 23:32
NarVish18-Apr-10 23:32 
AnswerRe: Manipulate XML Pin
NavnathKale19-Apr-10 0:00
NavnathKale19-Apr-10 0:00 
GeneralRe: Manipulate XML Pin
NarVish19-Apr-10 1:13
NarVish19-Apr-10 1:13 
GeneralRe: Manipulate XML Pin
NavnathKale19-Apr-10 2:08
NavnathKale19-Apr-10 2:08 
GeneralRe: Manipulate XML Pin
NarVish19-Apr-10 3:11
NarVish19-Apr-10 3:11 
GeneralRe: Manipulate XML Pin
NarVish19-Apr-10 19:13
NarVish19-Apr-10 19:13 
GeneralRe: Manipulate XML Pin
NavnathKale19-Apr-10 21:48
NavnathKale19-Apr-10 21:48 
GeneralRe: Manipulate XML Pin
NarVish19-Apr-10 23:34
NarVish19-Apr-10 23:34 
GeneralRe: Manipulate XML Pin
NavnathKale20-Apr-10 0:58
NavnathKale20-Apr-10 0:58 
GeneralRe: Manipulate XML Pin
NarVish20-Apr-10 1:20
NarVish20-Apr-10 1:20 
GeneralRe: Manipulate XML Pin
NavnathKale20-Apr-10 1:21
NavnathKale20-Apr-10 1:21 
QuestionHow to put large text data (~20mb) into sql cs 3.5 database? Pin
Anindya Chatterjee18-Apr-10 21:42
Anindya Chatterjee18-Apr-10 21:42 
AnswerRe: How to put large text data (~20mb) into sql cs 3.5 database? Pin
Ashfield18-Apr-10 22:16
Ashfield18-Apr-10 22:16 

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.