Click here to Skip to main content
15,896,450 members
Home / Discussions / C#
   

C#

 
QuestionHow to open a form in tableLayoutPanel control while loading? Pin
S a n d y5-Apr-08 2:34
S a n d y5-Apr-08 2:34 
GeneralAdministrate Indexing Server via Web App Pin
Muhammad Nauman Yousuf5-Apr-08 0:56
Muhammad Nauman Yousuf5-Apr-08 0:56 
GeneralBlocking certain website Pin
the pink jedi4-Apr-08 19:57
the pink jedi4-Apr-08 19:57 
GeneralRe: Blocking certain website Pin
Thomas Stockwell5-Apr-08 14:22
professionalThomas Stockwell5-Apr-08 14:22 
Generali need ole total collection and data type Pin
badshah20054-Apr-08 11:57
badshah20054-Apr-08 11:57 
GeneralRe: i need ole total collection and data type Pin
Rick van Woudenberg4-Apr-08 12:12
Rick van Woudenberg4-Apr-08 12:12 
Generalcompare byte array Pin
baranils4-Apr-08 11:37
baranils4-Apr-08 11:37 
GeneralRe: compare byte array Pin
MidwestLimey4-Apr-08 11:55
professionalMidwestLimey4-Apr-08 11:55 
I don't believe there's a built in function, and I've seen some pretty *interesting* ways people have done it, but bytewise comparison is simple and fast unless you're talking GBs of data.

static bool compareByteArrays(byte[] arr1, byte[] arr2) {
    int len, i;
    for(i = 0, len = arr1.Length; i < len && arr1[i] == arr2[i]; i++);
    return i == len;
}



I'm largely language agnostic

After a while they all bug me D'Oh! | :doh:


GeneralRe: compare byte array Pin
Rick van Woudenberg4-Apr-08 11:55
Rick van Woudenberg4-Apr-08 11:55 
GeneralRe: compare byte array Pin
baranils4-Apr-08 19:42
baranils4-Apr-08 19:42 
GeneralBinaryRreader The string is prefixed with the length, encoded as an integer seven bits at a time Pin
baranils4-Apr-08 10:18
baranils4-Apr-08 10:18 
GeneralRe: BinaryRreader The string is prefixed with the length, encoded as an integer seven bits at a time Pin
KaptinKrunch4-Apr-08 10:31
KaptinKrunch4-Apr-08 10:31 
GeneralRe: BinaryRreader The string is prefixed with the length, encoded as an integer seven bits at a time Pin
baranils4-Apr-08 10:50
baranils4-Apr-08 10:50 
GeneralRe: BinaryRreader The string is prefixed with the length, encoded as an integer seven bits at a time Pin
Zoltan Balazs4-Apr-08 11:16
Zoltan Balazs4-Apr-08 11:16 
GeneralRe: BinaryRreader The string is prefixed with the length, encoded as an integer seven bits at a time Pin
baranils4-Apr-08 11:35
baranils4-Apr-08 11:35 
GeneralFlops Pin
snorkie4-Apr-08 9:49
professionalsnorkie4-Apr-08 9:49 
GeneralRe: Flops Pin
Rick van Woudenberg4-Apr-08 9:57
Rick van Woudenberg4-Apr-08 9:57 
GeneralRe: Flops Pin
snorkie4-Apr-08 9:59
professionalsnorkie4-Apr-08 9:59 
GeneralRe: Flops Pin
Pete O'Hanlon4-Apr-08 10:07
mvePete O'Hanlon4-Apr-08 10:07 
GeneralRe: Flops Pin
KaptinKrunch4-Apr-08 10:09
KaptinKrunch4-Apr-08 10:09 
GeneralRe: Flops Pin
snorkie4-Apr-08 10:17
professionalsnorkie4-Apr-08 10:17 
GeneralRe: Flops Pin
Dave Kreskowiak4-Apr-08 10:13
mveDave Kreskowiak4-Apr-08 10:13 
GeneralRe: Flops Pin
Rick van Woudenberg4-Apr-08 10:25
Rick van Woudenberg4-Apr-08 10:25 
GeneralRe: Flops Pin
led mike4-Apr-08 11:11
led mike4-Apr-08 11:11 
GeneralRe: Flops Pin
Zoltan Balazs4-Apr-08 11:20
Zoltan Balazs4-Apr-08 11:20 

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.