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

C#

 
GeneralRe: C#.net Date Time checker Pin
Gerry Schmitz18-Mar-16 6:25
mveGerry Schmitz18-Mar-16 6:25 
QuestionDynamically Create Objects Then Add Them To An Array Pin
MadDashCoder14-Mar-16 21:27
MadDashCoder14-Mar-16 21:27 
AnswerRe: Dynamically Create Objects Then Add Them To An Array Pin
dan!sh 14-Mar-16 22:20
professional dan!sh 14-Mar-16 22:20 
GeneralRe: Dynamically Create Objects Then Add Them To An Array Pin
MadDashCoder15-Mar-16 4:10
MadDashCoder15-Mar-16 4:10 
QuestionUse XDocument to load xm, show on gridview and textbox, then modify and save xml Pin
Christian Torres M14-Mar-16 8:13
Christian Torres M14-Mar-16 8:13 
AnswerRe: Use XDocument to load xm, show on gridview and textbox, then modify and save xml Pin
Dave Kreskowiak14-Mar-16 8:42
mveDave Kreskowiak14-Mar-16 8:42 
SuggestionRe: Use XDocument to load xm, show on gridview and textbox, then modify and save xml Pin
Sascha Lefèvre14-Mar-16 9:01
professionalSascha Lefèvre14-Mar-16 9:01 
QuestionObtaining USB HID device information Pin
Leif Simon Goodwin14-Mar-16 5:19
Leif Simon Goodwin14-Mar-16 5:19 
I have a need to retrieve a list of attached USB HID devices and query their details to populate a list. .Net makes it easy to get a list of devices:

ManagementObjectCollection collection;
using (var searcher = new ManagementObjectSearcher(@"Select * From Win32_PnPEntity Where PNPDeviceID like 'HID%'"))
{
collection = searcher.Get();
}

I can then iterate over the items in the collection and query the properties. Unfortunately the properties do not include the device friendly name e.g. "Big Image Inc Reader".

Is there a native .Net way to get properties such as the friendly name?

I have code that can do this in C++ using DeviceIOControl etc, and it might be that the best approach is to write a non managed C++ wrapper class and invoke it from C#. But native code woud be 'cleaner'.
AnswerRe: Obtaining USB HID device information Pin
Garth J Lancaster14-Mar-16 14:51
professionalGarth J Lancaster14-Mar-16 14:51 
GeneralRe: Obtaining USB HID device information Pin
Leif Simon Goodwin29-Mar-16 1:13
Leif Simon Goodwin29-Mar-16 1:13 
AnswerRe: Obtaining USB HID device information Pin
GrooverFromHolland15-Mar-16 9:39
GrooverFromHolland15-Mar-16 9:39 
Questionconditional compilation Pin
joost.versteegen14-Mar-16 3:48
joost.versteegen14-Mar-16 3:48 
AnswerRe: conditional compilation Pin
OriginalGriff14-Mar-16 5:09
mveOriginalGriff14-Mar-16 5:09 
GeneralRe: conditional compilation Pin
joost.versteegen14-Mar-16 5:48
joost.versteegen14-Mar-16 5:48 
GeneralRe: conditional compilation Pin
Eddy Vluggen14-Mar-16 6:50
professionalEddy Vluggen14-Mar-16 6:50 
AnswerRe: conditional compilation Pin
Sascha Lefèvre14-Mar-16 6:18
professionalSascha Lefèvre14-Mar-16 6:18 
QuestionRe: conditional compilation Pin
John Torjo14-Mar-16 13:12
professionalJohn Torjo14-Mar-16 13:12 
AnswerRe: conditional compilation Pin
joost.versteegen14-Mar-16 21:32
joost.versteegen14-Mar-16 21:32 
GeneralRe: conditional compilation Pin
John Torjo14-Mar-16 21:41
professionalJohn Torjo14-Mar-16 21:41 
GeneralRe: conditional compilation Pin
joost.versteegen14-Mar-16 23:03
joost.versteegen14-Mar-16 23:03 
QuestioniTextSharp Split large table with Headers on each pages Pin
Zefir114-Mar-16 1:09
Zefir114-Mar-16 1:09 
QuestionNewbee Facebook SDK questions Pin
ForNow13-Mar-16 6:30
ForNow13-Mar-16 6:30 
AnswerRe: Newbee Facebook SDK questions Pin
Richard MacCutchan13-Mar-16 7:12
mveRichard MacCutchan13-Mar-16 7:12 
GeneralRe: Newbee Facebook SDK questions Pin
ForNow13-Mar-16 7:27
ForNow13-Mar-16 7:27 
GeneralRe: Newbee Facebook SDK questions Pin
Richard MacCutchan13-Mar-16 23:11
mveRichard MacCutchan13-Mar-16 23:11 

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.