Click here to Skip to main content
15,890,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: Median Filter Pin
Christian Graus29-Jan-03 15:28
protectorChristian Graus29-Jan-03 15:28 
QuestionHow to display text in a label vertically Pin
chito28-Jan-03 18:54
chito28-Jan-03 18:54 
AnswerRe: How to display text in a label vertically Pin
Chris Austin28-Jan-03 19:32
Chris Austin28-Jan-03 19:32 
AnswerRe: How to display text in a label vertically Pin
Meysam Mahfouzi29-Jan-03 18:03
Meysam Mahfouzi29-Jan-03 18:03 
GeneralPreventing messages with AddMessageFilter() Pin
Meysam Mahfouzi28-Jan-03 16:32
Meysam Mahfouzi28-Jan-03 16:32 
GeneralRe: Preventing messages with AddMessageFilter() Pin
Chris Austin28-Jan-03 17:47
Chris Austin28-Jan-03 17:47 
GeneralTAPI CallerID Pin
OBRon28-Jan-03 15:49
OBRon28-Jan-03 15:49 
QuestionUndocumented DataColumn.SimpleType ??? Pin
Marc Clifton28-Jan-03 15:03
mvaMarc Clifton28-Jan-03 15:03 
AnswerRe: Undocumented DataColumn.SimpleType ??? Pin
Marc Clifton28-Jan-03 15:21
mvaMarc Clifton28-Jan-03 15:21 
General.NET Decompilers Pin
T Jenniges28-Jan-03 13:22
T Jenniges28-Jan-03 13:22 
GeneralRe: .NET Decompilers Pin
Chris Austin28-Jan-03 14:00
Chris Austin28-Jan-03 14:00 
QuestionWindows Form Question??? Pin
ethan28-Jan-03 10:32
ethan28-Jan-03 10:32 
AnswerRe: Windows Form Question??? Pin
leppie28-Jan-03 10:45
leppie28-Jan-03 10:45 
AnswerFixed Image Link Pin
ethan28-Jan-03 10:56
ethan28-Jan-03 10:56 
AnswerRe: Windows Form Question??? Pin
Chris Austin28-Jan-03 11:15
Chris Austin28-Jan-03 11:15 
AnswerRe: Windows Form Question??? Pin
Brian Nottingham28-Jan-03 12:18
Brian Nottingham28-Jan-03 12:18 
AnswerThanks -- Re: Windows Form Question??? Pin
ethan29-Jan-03 4:56
ethan29-Jan-03 4:56 
GeneralXSD, Datasets, and global elements Pin
Marc Clifton28-Jan-03 8:35
mvaMarc Clifton28-Jan-03 8:35 
GeneralRe: XSD, Datasets, and global elements Pin
leppie28-Jan-03 9:28
leppie28-Jan-03 9:28 
GeneralRe: XSD, Datasets, and global elements Pin
Marc Clifton28-Jan-03 10:01
mvaMarc Clifton28-Jan-03 10:01 
GeneralRe: XSD, Datasets, and global elements Pin
leppie28-Jan-03 10:41
leppie28-Jan-03 10:41 
GeneralRetrieve the Name of a Disk Drive Pin
Mark Sanders28-Jan-03 5:30
Mark Sanders28-Jan-03 5:30 
GeneralRe: Retrieve the Name of a Disk Drive Pin
thematt28-Jan-03 6:31
thematt28-Jan-03 6:31 
Mark Sanders wrote:
1. Open Windows Explorer.
2. Right click on the reader (labeled "Removable Disk (F)")
3. Select Properties.
4. Select the Hardware tab from the Removable Disk Properties.
5. Under the hardware tab there will be a list of "All disk drives:". In this list the specific name of the reader is listed as "eUSB Secure Digital USB Device."


I can get the same type of information using WMI about my IDE drives. I hope it works for the USB device:

private void button1_Click_1(object sender, System.EventArgs e)
{
String scope = "\\root\\cimv2";
ManagementScope ms = new ManagementScope(scope);
ObjectQuery oq = new ObjectQuery("Select * from win32_diskdrive");
ManagementObjectSearcher mos = new ManagementObjectSearcher(ms, oq);
ManagementObjectCollection moc = mos.Get();
foreach(ManagementObject mo in moc)
{
txtOutput.AppendText(mo["caption"].ToString() + "\r\n");
}
}

Of course you must have WMI on the system.

Matt is a network administrator for an insurance company in the midwest. He is shamelessly looking for Windows programming side work.
GeneralRe: Retrieve the Name of a Disk Drive Pin
Mark Sanders28-Jan-03 7:41
Mark Sanders28-Jan-03 7:41 
GeneralRe: Retrieve the Name of a Disk Drive Pin
thematt28-Jan-03 7:54
thematt28-Jan-03 7:54 

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.