Click here to Skip to main content
15,905,682 members
Home / Discussions / C#
   

C#

 
GeneralRe: Immediate Help Pin
Colin Angus Mackay7-Jun-08 23:38
Colin Angus Mackay7-Jun-08 23:38 
JokeRe: Immediate Help Pin
MarkB7777-Jun-08 23:39
MarkB7777-Jun-08 23:39 
GeneralRe: Immediate Help Pin
Rob Smiley8-Jun-08 3:45
Rob Smiley8-Jun-08 3:45 
AnswerRe: Immediate Help Pin
RobScripta8-Jun-08 21:35
professionalRobScripta8-Jun-08 21:35 
QuestionHow to determine the user define, List and String using Reflection Pin
sourceisnothere7-Jun-08 19:17
sourceisnothere7-Jun-08 19:17 
QuestionHow can I hide notify icons programmatically? Pin
LordCover7-Jun-08 15:05
LordCover7-Jun-08 15:05 
AnswerRe: How can I hide notify icons programmatically? Pin
Gareth H7-Jun-08 22:12
Gareth H7-Jun-08 22:12 
GeneralRe: How can I hide notify icons programmatically? Pin
LordCover9-Jun-08 0:25
LordCover9-Jun-08 0:25 
GeneralRe: How can I hide notify icons programmatically? Pin
LordCover9-Jun-08 0:34
LordCover9-Jun-08 0:34 
AnswerRe: How can I hide notify icons programmatically? Pin
Giorgi Dalakishvili7-Jun-08 23:58
mentorGiorgi Dalakishvili7-Jun-08 23:58 
GeneralRe: How can I hide notify icons programmatically? Pin
LordCover9-Jun-08 0:29
LordCover9-Jun-08 0:29 
GeneralRe: How can I hide notify icons programmatically? Pin
Giorgi Dalakishvili9-Jun-08 1:03
mentorGiorgi Dalakishvili9-Jun-08 1:03 
QuestionDriveInfo - Removing a drive entry. Pin
Jammer7-Jun-08 12:28
Jammer7-Jun-08 12:28 
AnswerRe: DriveInfo - Removing a drive entry. Pin
Jammer7-Jun-08 12:48
Jammer7-Jun-08 12:48 
Hmm ... replying to myself! Wink | ;)

Is this possibly the neatest way?

public static void GetMachinesDirectoryList(bool ignoreC) // Get the machines directory information for all HDD
{
    DriveInfo[] drives = DriveInfo.GetDrives();
    foreach (DriveInfo drive in drives)
    {
        if (drive.DriveType == DriveType.Fixed && drive.IsReady == true)
        {
            if (drive.Name.StartsWith("C") && ignoreC == true)
            {
            }
            else
            {
                ScanDir(drive.ToString());
            }
        }
    }
}


Is this syntactically safe?

Jammer

Going where everyone here has gone before! Smile | :)
My Blog

GeneralRe: DriveInfo - Removing a drive entry. Pin
User 66587-Jun-08 23:29
User 66587-Jun-08 23:29 
GeneralRe: DriveInfo - Removing a drive entry. Pin
Jammer8-Jun-08 0:10
Jammer8-Jun-08 0:10 
QuestionDatatable rows check Pin
NewToAspDotNet7-Jun-08 10:14
NewToAspDotNet7-Jun-08 10:14 
AnswerRe: Datatable rows check Pin
Gareth H7-Jun-08 10:22
Gareth H7-Jun-08 10:22 
GeneralReflection or Serialization Pin
sourceisnothere7-Jun-08 9:14
sourceisnothere7-Jun-08 9:14 
GeneralRe: Reflection or Serialization Pin
User 66587-Jun-08 9:51
User 66587-Jun-08 9:51 
GeneralRe: Reflection or Serialization Pin
sourceisnothere7-Jun-08 10:42
sourceisnothere7-Jun-08 10:42 
QuestionAn other image processing Pin
Sajjad Izadi7-Jun-08 8:46
Sajjad Izadi7-Jun-08 8:46 
AnswerRe: An other image processing Pin
User 66587-Jun-08 9:25
User 66587-Jun-08 9:25 
GeneralRe: An other image processing Pin
Sajjad Izadi7-Jun-08 9:32
Sajjad Izadi7-Jun-08 9:32 
GeneralRe: An other image processing Pin
User 66587-Jun-08 9:36
User 66587-Jun-08 9:36 

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.