Click here to Skip to main content
15,886,724 members
Home / Discussions / C#
   

C#

 
AnswerRe: image processing Pin
OriginalGriff16-Jun-21 9:34
mveOriginalGriff16-Jun-21 9:34 
QuestionVisual Basic Commission Switch Statement + Calc Pin
Member 1524886715-Jun-21 11:46
Member 1524886715-Jun-21 11:46 
AnswerRe: Visual Basic Commission Switch Statement + Calc Pin
Dave Kreskowiak15-Jun-21 17:44
mveDave Kreskowiak15-Jun-21 17:44 
AnswerRe: Visual Basic Commission Switch Statement + Calc Pin
Richard Deeming15-Jun-21 22:07
mveRichard Deeming15-Jun-21 22:07 
GeneralRe: Visual Basic Commission Switch Statement + Calc Pin
Member 1524886716-Jun-21 9:36
Member 1524886716-Jun-21 9:36 
QuestionGet serial number from local printers connected to workstation by USB Pin
SzakiII15-Jun-21 2:28
SzakiII15-Jun-21 2:28 
AnswerRe: Get serial number from local printers connected to workstation by USB Pin
Gerry Schmitz15-Jun-21 9:21
mveGerry Schmitz15-Jun-21 9:21 
AnswerRe: Get serial number from local printers connected to workstation by USB Pin
Randor 15-Jun-21 11:41
professional Randor 15-Jun-21 11:41 
Hi,

SzakiII wrote:
I have a problem with identifying printers
First let me say that I am not a C# developer. All I can offer is the correct nomenclature and some guidance on how the operating system works and how I would obtain this using the native Windows API. So if you had 10 identical BrandX printers installed the Microsoft Windows operating system differentiates these by appending a unique device instance id[^] to the hardware id string.

As a native programmer I would call GetPrinterDriver function[^] with DRIVER_INFO_6[^] and obtain the hardware ID. Then I would tokenize the string and extract the unique device instance id[^]. You could also call the EnumPrinterDrivers function[^] to get DRIVER_INFO_6[^] for all of the installed printers. This would work for both local and network shared printers.

Maybe another codeproject member knows of a C# managed way to get to the device instance id. The unique identifier is at the end of the string:

PCI\VEN_1000&DEV_0001&SUBSYS_00000000&REV_02\1&08

Best Wishes,
-David Delaune
GeneralRe: Get serial number from local printers connected to workstation by USB Pin
Gerry Schmitz15-Jun-21 13:13
mveGerry Schmitz15-Jun-21 13:13 
GeneralRe: Get serial number from local printers connected to workstation by USB Pin
Randor 15-Jun-21 14:06
professional Randor 15-Jun-21 14:06 
Questionhow to convert Character codes HTML to arabic using c# Pin
michael nabil14-Jun-21 8:30
michael nabil14-Jun-21 8:30 
AnswerRe: how to convert Character codes HTML to arabic using c# Pin
Richard Deeming14-Jun-21 22:02
mveRichard Deeming14-Jun-21 22:02 
GeneralRe: how to convert Character codes HTML to arabic using c# Pin
michael nabil15-Jun-21 3:00
michael nabil15-Jun-21 3:00 
GeneralRe: how to convert Character codes HTML to arabic using c# Pin
Richard Deeming15-Jun-21 3:26
mveRichard Deeming15-Jun-21 3:26 
AnswerRe: how to convert Character codes HTML to arabic using c# Pin
Gerry Schmitz15-Jun-21 6:14
mveGerry Schmitz15-Jun-21 6:14 
QuestionHow to add row headers to DataGridView? Pin
Alex Dunlop9-Jun-21 19:16
Alex Dunlop9-Jun-21 19:16 
AnswerRe: How to add row headers to DataGridView? Pin
OriginalGriff9-Jun-21 20:13
mveOriginalGriff9-Jun-21 20:13 
GeneralRe: How to add row headers to DataGridView? Pin
Alex Dunlop9-Jun-21 21:53
Alex Dunlop9-Jun-21 21:53 
GeneralRe: How to add row headers to DataGridView? Pin
OriginalGriff9-Jun-21 22:07
mveOriginalGriff9-Jun-21 22:07 
GeneralRe: How to add row headers to DataGridView? Pin
Alex Dunlop9-Jun-21 22:10
Alex Dunlop9-Jun-21 22:10 
GeneralRe: How to add row headers to DataGridView? Pin
OriginalGriff9-Jun-21 22:25
mveOriginalGriff9-Jun-21 22:25 
GeneralRe: How to add row headers to DataGridView? Pin
Alex Dunlop9-Jun-21 22:39
Alex Dunlop9-Jun-21 22:39 
GeneralRe: How to add row headers to DataGridView? Pin
OriginalGriff9-Jun-21 22:41
mveOriginalGriff9-Jun-21 22:41 
GeneralRe: How to add row headers to DataGridView? Pin
Alex Dunlop9-Jun-21 23:08
Alex Dunlop9-Jun-21 23:08 
GeneralRe: How to add row headers to DataGridView? Pin
Alex Dunlop10-Jun-21 0:02
Alex Dunlop10-Jun-21 0:02 

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.