Click here to Skip to main content
14,771,488 members
Home » Discussions » C#
   

C#

 
GeneralRe: How to determine the number of references a program is currently using? Pin
Abul Kayes17-Jun-09 5:56
MemberAbul Kayes17-Jun-09 5:56 
GeneralRe: How to determine the number of references a program is currently using? Pin
Abul Kayes17-Jun-09 5:53
MemberAbul Kayes17-Jun-09 5:53 
GeneralRe: How to determine the number of references a program is currently using? Pin
Luc Pattyn17-Jun-09 6:05
sitebuilderLuc Pattyn17-Jun-09 6:05 
QuestionCalculate difference between two dates Pin
KIDYA17-Jun-09 1:15
MemberKIDYA17-Jun-09 1:15 
AnswerRe: Calculate difference between two dates Pin
OriginalGriff17-Jun-09 1:33
mveOriginalGriff17-Jun-09 1:33 
AnswerRe: Calculate difference between two dates Pin
Baran M17-Jun-09 1:36
MemberBaran M17-Jun-09 1:36 
AnswerRe: Calculate difference between two dates Pin
himanshu256117-Jun-09 1:38
Memberhimanshu256117-Jun-09 1:38 
QuestionSystem.Drawing.Image to IPicture and back changes the image Pin
Sander123432117-Jun-09 1:09
MemberSander123432117-Jun-09 1:09 
public new static object GetIPictureDispFromPicture(System.Drawing.Image image)
{

System.Drawing.ImageConverter converter2 = new System.Drawing.ImageConverter();

byte[] arraybyt2 = (byte[])converter2.ConvertTo(image, typeof(byte[]));

System.Drawing.Image imageToConvert = System.Windows.Forms.AxHost.GetPictureFromIPicture(System.Windows.Forms.AxHost.GetIPictureFromPicture(image));

System.Drawing.ImageConverter converter = new System.Drawing.ImageConverter();

byte[] arraybyt = (byte[])converter.ConvertTo(imageToConvert, typeof(byte[]));

return System.Windows.Forms.AxHost.GetIPictureFromPicture(image);

}


The function receives a Image that needs to be converted to an ipicture. I found out that during change the image to a ipicture and back to image the size of the array of bytes are different. How come the size of the arraybyt1 and arraybyt2 are different. I'm creating a checksum of the array from bytes and therefor the checksum is also different?
AnswerRe: System.Drawing.Image to IPicture and back changes the image Pin
Henry Minute17-Jun-09 2:24
MemberHenry Minute17-Jun-09 2:24 
QuestionSQL Data type validation Pin
jonhbt17-Jun-09 0:49
Memberjonhbt17-Jun-09 0:49 
AnswerRe: SQL Data type validation Pin
himanshu256117-Jun-09 1:46
Memberhimanshu256117-Jun-09 1:46 
AnswerRe: SQL Data type validation Pin
PIEBALDconsult17-Jun-09 10:12
professionalPIEBALDconsult17-Jun-09 10:12 
GeneralRe: SQL Data type validation Pin
jonhbt18-Jun-09 0:12
Memberjonhbt18-Jun-09 0:12 
GeneralRe: SQL Data type validation Pin
PIEBALDconsult18-Jun-09 5:42
professionalPIEBALDconsult18-Jun-09 5:42 
QuestionC# XmlDocument Encoding Pin
Samb198516-Jun-09 23:24
MemberSamb198516-Jun-09 23:24 
AnswerRe: C# XmlDocument Encoding Pin
SeMartens16-Jun-09 23:45
MemberSeMartens16-Jun-09 23:45 
GeneralRe: C# XmlDocument Encoding Pin
Samb198517-Jun-09 0:18
MemberSamb198517-Jun-09 0:18 
GeneralRe: C# XmlDocument Encoding Pin
SeMartens17-Jun-09 0:45
MemberSeMartens17-Jun-09 0:45 
GeneralRe: C# XmlDocument Encoding Pin
Samb198517-Jun-09 0:47
MemberSamb198517-Jun-09 0:47 
GeneralRe: C# XmlDocument Encoding Pin
SeMartens17-Jun-09 0:53
MemberSeMartens17-Jun-09 0:53 
GeneralRe: C# XmlDocument Encoding [modified] Pin
Samb198517-Jun-09 1:00
MemberSamb198517-Jun-09 1:00 
AnswerRe: C# XmlDocument Encoding Pin
PIEBALDconsult17-Jun-09 10:03
professionalPIEBALDconsult17-Jun-09 10:03 
GeneralRe: C# XmlDocument Encoding Pin
Samb198517-Jun-09 10:19
MemberSamb198517-Jun-09 10:19 
GeneralRe: C# XmlDocument Encoding Pin
PIEBALDconsult17-Jun-09 13:00
professionalPIEBALDconsult17-Jun-09 13:00 
QuestionAbstract Class, constructors Pin
dwadasi16-Jun-09 22:41
Memberdwadasi16-Jun-09 22:41 

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.