Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
AnswerRe: Issue in Exporting Column Headers from DatagridView to Excel Pin
Chris Quinn11-Feb-14 5:07
Chris Quinn11-Feb-14 5:07 
Generaldatagridview c# Pin
saharmirzaei10-Feb-14 23:49
saharmirzaei10-Feb-14 23:49 
GeneralRe: datagridview c# Pin
Eddy Vluggen11-Feb-14 3:00
professionalEddy Vluggen11-Feb-14 3:00 
Generaldatagridview Pin
saharmirzaei10-Feb-14 23:48
saharmirzaei10-Feb-14 23:48 
QuestionHelp Provider Pin
kwinko10-Feb-14 19:13
kwinko10-Feb-14 19:13 
AnswerRe: Help Provider Pin
OriginalGriff10-Feb-14 20:37
mveOriginalGriff10-Feb-14 20:37 
QuestionWhat is the purpose of a .edmx file? Pin
Xarzu10-Feb-14 14:40
Xarzu10-Feb-14 14:40 
AnswerRe: What is the purpose of a .edmx file? Pin
Snehasish_Nandy10-Feb-14 18:39
professionalSnehasish_Nandy10-Feb-14 18:39 
AnswerRe: What is the purpose of a .edmx file? Pin
Nicholas Marty10-Feb-14 21:38
professionalNicholas Marty10-Feb-14 21:38 
QuestionReading and writing USB HID FeatureReports async. Pin
BigBenDk10-Feb-14 5:34
BigBenDk10-Feb-14 5:34 
AnswerRe: Reading and writing USB HID FeatureReports async. Pin
Jason Gleim10-Feb-14 9:22
professionalJason Gleim10-Feb-14 9:22 
GeneralRe: Reading and writing USB HID FeatureReports async. Pin
BigBenDk10-Feb-14 10:26
BigBenDk10-Feb-14 10:26 
GeneralRe: Reading and writing USB HID FeatureReports async. Pin
Jason Gleim10-Feb-14 10:38
professionalJason Gleim10-Feb-14 10:38 
AnswerRe: Reading and writing USB HID FeatureReports async. Pin
Bernhard Hiller10-Feb-14 21:21
Bernhard Hiller10-Feb-14 21:21 
QuestionSOAP from scratch? Pin
Antessima10-Feb-14 4:41
Antessima10-Feb-14 4:41 
AnswerRe: SOAP from scratch? Pin
jschell10-Feb-14 8:11
jschell10-Feb-14 8:11 
GeneralRe: SOAP from scratch? Pin
Antessima10-Feb-14 8:42
Antessima10-Feb-14 8:42 
GeneralRe: SOAP from scratch? Pin
jschell11-Feb-14 11:04
jschell11-Feb-14 11:04 
QuestionReadAllBytes Method of the File Class PROBLEM Pin
computerpublic10-Feb-14 4:39
computerpublic10-Feb-14 4:39 
AnswerRe: ReadAllBytes Method of the File Class PROBLEM Pin
Richard Deeming10-Feb-14 5:30
mveRichard Deeming10-Feb-14 5:30 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
computerpublic10-Feb-14 5:45
computerpublic10-Feb-14 5:45 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
Richard Deeming10-Feb-14 5:56
mveRichard Deeming10-Feb-14 5:56 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
computerpublic10-Feb-14 6:27
computerpublic10-Feb-14 6:27 
GeneralRe: ReadAllBytes Method of the File Class PROBLEM Pin
Richard Deeming10-Feb-14 6:54
mveRichard Deeming10-Feb-14 6:54 
AnswerRe: ReadAllBytes Method of the File Class PROBLEM Pin
Matt T Heffron10-Feb-14 7:47
professionalMatt T Heffron10-Feb-14 7:47 
You can use the BitArray class to treat the array of bytes as an array of bits.
C#
byte[] data = File.ReadAllBytes("C:\Folder\TheFileToRead.ext");
BitArray dataAsBits = new BitArray(data);

See BitArray Class[^]
Note the order of the bits in the bytes!!

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.