Click here to Skip to main content
15,891,316 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to convert Struct to array Pin
Guffa27-Jul-07 2:36
Guffa27-Jul-07 2:36 
AnswerRe: How to convert Struct to array Pin
leppie27-Jul-07 3:16
leppie27-Jul-07 3:16 
AnswerRe: How to convert Struct to array Pin
CiNN27-Jul-07 5:39
CiNN27-Jul-07 5:39 
QuestionHow to give attechment with mailto in c# Pin
Dhaval Bhattji26-Jul-07 23:58
Dhaval Bhattji26-Jul-07 23:58 
AnswerRe: How to give attechment with mailto in c# Pin
Christian Graus27-Jul-07 0:30
protectorChristian Graus27-Jul-07 0:30 
QuestionProblem in Deployment of Excel Data Reading WebPart developed in C# Pin
khan SharePoint Developer26-Jul-07 23:45
khan SharePoint Developer26-Jul-07 23:45 
QuestionDiscover a Device in C# Pin
Amjath Rahman26-Jul-07 23:43
Amjath Rahman26-Jul-07 23:43 
AnswerRe: Discover a Device in C# Pin
Martin#26-Jul-07 23:54
Martin#26-Jul-07 23:54 
Hello,

In .Net < 2.0 you have to use System.Management functionalities.
ArrayList drives = new ArrayList();

using(ManagementObjectSearcher DriveSearch = new ManagementObjectSearcher(new SelectQuery("Select * from Win32_LogicalDisk")))
{
using(ManagementObjectCollection moDriveCollection = DriveSearch.Get())
{
        foreach(ManagementObject mo in  moDriveCollection)
        {
            LogicalDriveInfo driveinfo = new LogicalDriveInfo(mo);
            if(this[driveinfo.Name] == null)
                drives.Add(driveinfo);
            mo.Dispose();
        }
}
}


For .Net >= 2.0 you could use DriveInfo.GetDrives()[^]

All the best,

Martin

GeneralRe: Discover a Device in C# Pin
Amjath Rahman29-Jul-07 14:51
Amjath Rahman29-Jul-07 14:51 
Questionprinting a complete datagrid having paging and sorting Pin
samparadise26-Jul-07 23:36
samparadise26-Jul-07 23:36 
Questiondatagrid save Pin
csharpgal26-Jul-07 23:16
csharpgal26-Jul-07 23:16 
AnswerRe: datagrid save Pin
Christian Graus27-Jul-07 0:26
protectorChristian Graus27-Jul-07 0:26 
QuestionRe: datagrid save Pin
csharpgal27-Jul-07 1:41
csharpgal27-Jul-07 1:41 
QuestionControl inside listbox C# .Net Pin
drweb8626-Jul-07 22:53
drweb8626-Jul-07 22:53 
AnswerRe: Control inside listbox C# .Net Pin
Christian Graus26-Jul-07 23:08
protectorChristian Graus26-Jul-07 23:08 
GeneralRe: Control inside listbox C# .Net Pin
drweb8626-Jul-07 23:32
drweb8626-Jul-07 23:32 
GeneralRe: Control inside listbox C# .Net Pin
Christian Graus26-Jul-07 23:36
protectorChristian Graus26-Jul-07 23:36 
GeneralRe: Control inside listbox C# .Net Pin
drweb8626-Jul-07 23:45
drweb8626-Jul-07 23:45 
QuestionShowing an icon in a gridview (WPF) Pin
Johan Lombaard26-Jul-07 22:51
Johan Lombaard26-Jul-07 22:51 
AnswerRe: Showing an icon in a gridview (WPF) Pin
kubben27-Jul-07 1:42
kubben27-Jul-07 1:42 
Questionconvert to ASCII Pin
Sunshine Always26-Jul-07 22:47
Sunshine Always26-Jul-07 22:47 
AnswerRe: convert to ASCII Pin
Christian Graus26-Jul-07 23:07
protectorChristian Graus26-Jul-07 23:07 
AnswerRe: convert to ASCII Pin
Hari Om Prakash Sharma26-Jul-07 23:09
Hari Om Prakash Sharma26-Jul-07 23:09 
GeneralRe: convert to ASCII Pin
Christian Graus26-Jul-07 23:25
protectorChristian Graus26-Jul-07 23:25 
QuestionEventhandler in C# - How to send parameter Pin
Vikas K.26-Jul-07 22:14
Vikas K.26-Jul-07 22:14 

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.