Click here to Skip to main content
15,906,574 members
Home / Discussions / C#
   

C#

 
GeneralRe: Show an integer property as hexadecimal in a property grid Pin
FDK22-Aug-07 10:55
FDK22-Aug-07 10:55 
GeneralRe: Show an integer property as hexadecimal in a property grid Pin
pmarfleet2-Aug-07 11:32
pmarfleet2-Aug-07 11:32 
GeneralRe: Show an integer property as hexadecimal in a property grid Pin
FDK22-Aug-07 11:48
FDK22-Aug-07 11:48 
GeneralRe: Show an integer property as hexadecimal in a property grid Pin
pmarfleet2-Aug-07 12:23
pmarfleet2-Aug-07 12:23 
GeneralRe: Show an integer property as hexadecimal in a property grid Pin
FDK22-Aug-07 20:59
FDK22-Aug-07 20:59 
Questionautomate Active directory C# Pin
franklinm2-Aug-07 4:03
franklinm2-Aug-07 4:03 
AnswerRe: automate Active directory C# Pin
originSH2-Aug-07 4:25
originSH2-Aug-07 4:25 
QuestionAnswer my comment Pin
Karthi_jpk2-Aug-07 3:35
Karthi_jpk2-Aug-07 3:35 
JokeRe: Answer my comment Pin
CPallini2-Aug-07 3:43
mveCPallini2-Aug-07 3:43 
AnswerRe: Answer my comment Pin
Joseph Guadagno2-Aug-07 3:43
Joseph Guadagno2-Aug-07 3:43 
AnswerRe: Answer my comment Pin
Software_Specialist2-Aug-07 4:15
Software_Specialist2-Aug-07 4:15 
AnswerRe: Answer my comment Pin
Sam_c2-Aug-07 4:21
Sam_c2-Aug-07 4:21 
GeneralRe: Answer my comment Pin
CPallini2-Aug-07 4:51
mveCPallini2-Aug-07 4:51 
AnswerMow my lawn. Pin
leckey2-Aug-07 6:35
leckey2-Aug-07 6:35 
GeneralRe: Mow my lawn. Pin
snorkie2-Aug-07 7:49
professionalsnorkie2-Aug-07 7:49 
QuestionProblem placing the TableLayoutPanel at the same location! Pin
Khoramdin2-Aug-07 3:35
Khoramdin2-Aug-07 3:35 
AnswerRe: Problem placing the TableLayoutPanel at the same location! Pin
Martin#2-Aug-07 3:40
Martin#2-Aug-07 3:40 
QuestionProcess.Start with specific Culture Setting Pin
Rolf Sperling2-Aug-07 3:30
Rolf Sperling2-Aug-07 3:30 
AnswerRe: Process.Start with specific Culture Setting Pin
Martin#2-Aug-07 3:45
Martin#2-Aug-07 3:45 
GeneralRe: Process.Start with specific Culture Setting Pin
Rolf Sperling2-Aug-07 20:27
Rolf Sperling2-Aug-07 20:27 
GeneralRe: Process.Start with specific Culture Setting Pin
Martin#2-Aug-07 20:33
Martin#2-Aug-07 20:33 
Question24 bit bitmap doubt .. Pin
Software_Specialist2-Aug-07 2:37
Software_Specialist2-Aug-07 2:37 
Hi i am trying to check whether the bitmap file is 24 bit or not.
For this i have written a below code

<br />
FileStream File<br />
byte[] buffer = new byte[2];<br />
File.Seek(28,0);<br />
File.Read(buffer,0,2);<br />
Int16 nBit = BitConverter.ToInt16(buffer, 0);<br />


The above code works fine and give me the value of nBit as 24. But i don't understand the exact working of it.

Ok first it creates 2byte array, then i have a doubt over 2nd line i.e.
File.Read(28,0); Why current position is set to 28 here....??
It gives correct value when i set that to 28 and by next line the position jumps 2 place further i.e. 30 and by then i get correct value 24.
Can any one please explain me this behaviour...?

Thanks
AnswerRe: 24 bit bitmap doubt .. Pin
Mike Dimmick2-Aug-07 2:53
Mike Dimmick2-Aug-07 2:53 
AnswerRe: 24 bit bitmap doubt .. Pin
Ilya Verbitskiy2-Aug-07 2:55
Ilya Verbitskiy2-Aug-07 2:55 
GeneralRe: 24 bit bitmap doubt .. Pin
Software_Specialist2-Aug-07 3:16
Software_Specialist2-Aug-07 3: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.