Click here to Skip to main content
14,932,010 members
Home / Discussions / C#
   

C#

 
Questionneed some help with Directory.GetFiles() Pin
MarkB77710-Sep-08 18:30
MemberMarkB77710-Sep-08 18:30 
AnswerRe: need some help with Directory.GetFiles() Pin
User 665810-Sep-08 18:48
MemberUser 665810-Sep-08 18:48 
GeneralRe: need some help with Directory.GetFiles() Pin
MarkB77710-Sep-08 18:59
MemberMarkB77710-Sep-08 18:59 
Questionnose and mouth detection Pin
siewying10-Sep-08 17:46
Membersiewying10-Sep-08 17:46 
AnswerRe: nose and mouth detection Pin
Guffa10-Sep-08 21:18
MemberGuffa10-Sep-08 21:18 
GeneralRe: nose and mouth detection Pin
siewying10-Sep-08 21:20
Membersiewying10-Sep-08 21:20 
QuestionDrive Size, DEC > HEX Pin
Muammar©10-Sep-08 15:01
Member Muammar©10-Sep-08 15:01 
AnswerRe: Drive Size, DEC > HEX Pin
Robert.C.Cartaino10-Sep-08 17:05
MemberRobert.C.Cartaino10-Sep-08 17:05 
di.TotalSize should give you the drive size, in bytes. What number do you expect and what are you actually getting?

You can display a number in hex by using:
int decValue = 65535;
Console.WriteLine("{0:X}", decValue);
If you want to save the hex value as a string, you can use any of the following methods:
hexString = decValue.ToString("X");
hexString = string.Format("{0:X}", decValue);
hexString = Convert.ToString(decValue, 16);


Enjoy,

Robert C. Cartaino
GeneralRe: Drive Size, DEC > HEX Pin
Muammar©11-Sep-08 1:01
Member Muammar©11-Sep-08 1:01 
QuestionImplementing Application Object Pin
Kevin Marois10-Sep-08 14:40
professionalKevin Marois10-Sep-08 14:40 
AnswerRe: Implementing Application Object Pin
Muammar©10-Sep-08 15:08
Member Muammar©10-Sep-08 15:08 
GeneralRe: Implementing Application Object Pin
Kevin Marois10-Sep-08 15:26
professionalKevin Marois10-Sep-08 15:26 
AnswerRe: Implementing Application Object Pin
Mark Churchill10-Sep-08 16:18
MemberMark Churchill10-Sep-08 16:18 
QuestionOutput video to VGA? Pin
DarthDie10-Sep-08 13:56
MemberDarthDie10-Sep-08 13:56 
AnswerRe: Output video to VGA? Pin
Mark Salsbery10-Sep-08 16:14
MemberMark Salsbery10-Sep-08 16:14 
Questiondatagridview - quick question Pin
nelsonpaixao10-Sep-08 12:46
Membernelsonpaixao10-Sep-08 12:46 
AnswerRe: datagridview - quick question Pin
Mbah Dhaim10-Sep-08 13:14
MemberMbah Dhaim10-Sep-08 13:14 
QuestionHide/Unhide calendar in a gridview c# Pin
DanielHH10-Sep-08 11:29
MemberDanielHH10-Sep-08 11:29 
AnswerRe: Hide/Unhide calendar in a gridview c# Pin
leppie10-Sep-08 21:56
Memberleppie10-Sep-08 21:56 
QuestionSqlCommand : executed SQL statement Pin
dlarkin7710-Sep-08 9:22
Memberdlarkin7710-Sep-08 9:22 
AnswerRe: SqlCommand : executed SQL statement Pin
Giorgi Dalakishvili10-Sep-08 9:46
mentorGiorgi Dalakishvili10-Sep-08 9:46 
AnswerRe: SqlCommand : executed SQL statement Pin
Pete O'Hanlon10-Sep-08 9:49
mvePete O'Hanlon10-Sep-08 9:49 
AnswerRe: SqlCommand : executed SQL statement Pin
dlarkin7710-Sep-08 9:51
Memberdlarkin7710-Sep-08 9:51 
AnswerRe: SqlCommand : executed SQL statement Pin
Wendelius10-Sep-08 10:37
mveWendelius10-Sep-08 10:37 
Questiongenerics with nullable value Pin
md_refay10-Sep-08 8:50
Membermd_refay10-Sep-08 8:50 

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.