Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
AnswerRe: splashScreen, .exe and con class Pin
MatrixCoder8-May-07 9:59
MatrixCoder8-May-07 9:59 
AnswerRe: splashScreen, .exe and con class Pin
AFSEKI8-May-07 23:05
AFSEKI8-May-07 23:05 
Questionhow to creat a setup file Pin
kanth_2ma28-May-07 9:18
kanth_2ma28-May-07 9:18 
AnswerRe: how to creat a setup file Pin
PIEBALDconsult8-May-07 9:43
mvePIEBALDconsult8-May-07 9:43 
QuestionUSB (removable) drives in listbox Pin
simplicitylabs8-May-07 9:12
simplicitylabs8-May-07 9:12 
AnswerRe: USB (removable) drives in listbox Pin
nateraaaa8-May-07 9:23
nateraaaa8-May-07 9:23 
AnswerRe: USB (removable) drives in listbox Pin
MatrixCoder8-May-07 9:45
MatrixCoder8-May-07 9:45 
GeneralRe: USB (removable) drives in listbox Pin
simplicitylabs8-May-07 10:19
simplicitylabs8-May-07 10:19 
Thanks a bunch, guys. The world's easiest way to list all USB drives on the system...This worked:

System.IO.DriveInfo[] allDrives = System.IO.DriveInfo.GetDrives();

foreach (System.IO.DriveInfo d in allDrives)
{
    if (d.IsReady == true && d.DriveType == System.IO.DriveType.Removable)
    {
        listBox1.Items.Add(d.Name);
    }
}


Ok. Now that we have that worked out. Let me say this: I have this code in "form1.designer.cs", which I know is incorrect. How do I get it where it belongs (in form1.cs) and have it work right? I put it in there previously, and it didn't work.
GeneralRe: USB (removable) drives in listbox Pin
MatrixCoder8-May-07 10:40
MatrixCoder8-May-07 10:40 
GeneralRe: USB (removable) drives in listbox Pin
simplicitylabs8-May-07 12:06
simplicitylabs8-May-07 12:06 
GeneralRe: USB (removable) drives in listbox Pin
simplicitylabs8-May-07 12:16
simplicitylabs8-May-07 12:16 
AnswerRe: USB (removable) drives in listbox Pin
AFSEKI8-May-07 23:11
AFSEKI8-May-07 23:11 
Questionproblem to use TreeView in show Hierarchy data. Pin
hdv2128-May-07 8:52
hdv2128-May-07 8:52 
AnswerRe: problem to use TreeView in show Hierarchy data. Pin
PIEBALDconsult8-May-07 9:51
mvePIEBALDconsult8-May-07 9:51 
AnswerRe: problem to use TreeView in show Hierarchy data. Pin
PIEBALDconsult8-May-07 11:13
mvePIEBALDconsult8-May-07 11:13 
QuestionProblems with GUI in Visual Studio C# .Net Pin
zeeShan anSari8-May-07 8:05
zeeShan anSari8-May-07 8:05 
AnswerRe: Problems with GUI in Visual Studio C# .Net Pin
Luc Pattyn8-May-07 8:25
sitebuilderLuc Pattyn8-May-07 8:25 
GeneralRe: Problems with GUI in Visual Studio C# .Net Pin
zeeShan anSari9-May-07 9:54
zeeShan anSari9-May-07 9:54 
QuestionRedrawing Screen Pin
rahvyn68-May-07 7:45
rahvyn68-May-07 7:45 
QuestionScanning all files in a computer Pin
sharpiesharpie8-May-07 7:09
sharpiesharpie8-May-07 7:09 
AnswerRe: Scanning all files in a computer Pin
Dave Kreskowiak8-May-07 7:34
mveDave Kreskowiak8-May-07 7:34 
GeneralRe: Scanning all files in a computer Pin
sharpiesharpie8-May-07 11:27
sharpiesharpie8-May-07 11:27 
GeneralRe: Scanning all files in a computer Pin
Luc Pattyn8-May-07 12:16
sitebuilderLuc Pattyn8-May-07 12:16 
GeneralRe: Scanning all files in a computer Pin
Dave Kreskowiak8-May-07 17:29
mveDave Kreskowiak8-May-07 17:29 
QuestionHow to determine primary columns in a table Pin
Naveed Kamboh8-May-07 6:32
Naveed Kamboh8-May-07 6:32 

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.