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

C#

 
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 
QuestionFilestream and BinaryWriter Pin
jayarajmrj2-Aug-07 2:35
jayarajmrj2-Aug-07 2:35 
AnswerRe: Filestream and BinaryWriter Pin
Software_Specialist2-Aug-07 2:40
Software_Specialist2-Aug-07 2:40 
AnswerRe: Filestream and BinaryWriter Pin
Sam_c2-Aug-07 2:55
Sam_c2-Aug-07 2:55 
QuestionListView Filter - Tab Control [modified] Pin
Christi Roselin2-Aug-07 2:06
Christi Roselin2-Aug-07 2:06 
QuestionCan i use NetResource() in C#? Pin
selvasonline2-Aug-07 2:03
selvasonline2-Aug-07 2:03 
AnswerRe: Can i use NetResource() in C#? Pin
Not Active2-Aug-07 3:00
mentorNot Active2-Aug-07 3:00 
Questioncombobox problem Pin
akkram2-Aug-07 2:02
akkram2-Aug-07 2:02 
AnswerRe: combobox problem Pin
Martin#2-Aug-07 2:14
Martin#2-Aug-07 2:14 
GeneralRe: combobox problem Pin
akkram2-Aug-07 2:29
akkram2-Aug-07 2:29 
GeneralRe: combobox problem Pin
Martin#2-Aug-07 2:32
Martin#2-Aug-07 2:32 
AnswerRe: combobox problem Pin
Nisar Inamdar2-Aug-07 3:02
Nisar Inamdar2-Aug-07 3:02 
QuestionNetResource() in C# Pin
selvasonline2-Aug-07 1:59
selvasonline2-Aug-07 1:59 
AnswerRe: NetResource() in C# Pin
Martin#2-Aug-07 2:03
Martin#2-Aug-07 2:03 
QuestionInsert 20,000 records with NHibernate Pin
Albu Marius2-Aug-07 1:30
Albu Marius2-Aug-07 1:30 

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.