Click here to Skip to main content
15,907,326 members
Home / Discussions / C#
   

C#

 
QuestionRenaming tool project/class structure Pin
Adam_Dev12-Oct-12 4:46
Adam_Dev12-Oct-12 4:46 
AnswerRe: Renaming tool project/class structure Pin
Eddy Vluggen12-Oct-12 5:28
professionalEddy Vluggen12-Oct-12 5:28 
GeneralRe: Renaming tool project/class structure Pin
Adam_Dev14-Oct-12 22:13
Adam_Dev14-Oct-12 22:13 
GeneralRe: Renaming tool project/class structure Pin
Eddy Vluggen15-Oct-12 0:40
professionalEddy Vluggen15-Oct-12 0:40 
AnswerRe: Renaming tool project/class structure Pin
n.podbielski12-Oct-12 5:35
n.podbielski12-Oct-12 5:35 
QuestionHow to implement a resumable HTTP download? Pin
Jun Du12-Oct-12 3:48
Jun Du12-Oct-12 3:48 
AnswerRe: How to implement a resumable HTTP download? Pin
Eddy Vluggen12-Oct-12 5:07
professionalEddy Vluggen12-Oct-12 5:07 
QuestionHow to change color (combo,Text etc) when enable=false Pin
himmubhai12-Oct-12 3:09
himmubhai12-Oct-12 3:09 
GeneralRe: How to change color (combo,Text etc) when enable=false Pin
Marco Bertschi12-Oct-12 4:53
protectorMarco Bertschi12-Oct-12 4:53 
GeneralRe: How to change color (combo,Text etc) when enable=false Pin
himmubhai12-Oct-12 6:13
himmubhai12-Oct-12 6:13 
QuestionCan someone explain this... Pin
DanielSheets12-Oct-12 2:34
DanielSheets12-Oct-12 2:34 
AnswerRe: Can someone explain this... Pin
Eddy Vluggen12-Oct-12 2:38
professionalEddy Vluggen12-Oct-12 2:38 
GeneralRe: Can someone explain this... Pin
DanielSheets12-Oct-12 2:40
DanielSheets12-Oct-12 2:40 
GeneralRe: Can someone explain this... Pin
Eddy Vluggen12-Oct-12 2:51
professionalEddy Vluggen12-Oct-12 2:51 
GeneralRe: Can someone explain this... Pin
DanielSheets12-Oct-12 2:55
DanielSheets12-Oct-12 2:55 
GeneralRe: Can someone explain this... Pin
OriginalGriff12-Oct-12 3:52
mveOriginalGriff12-Oct-12 3:52 
GeneralRe: Can someone explain this... Pin
DanielSheets19-Oct-12 1:31
DanielSheets19-Oct-12 1:31 
GeneralRe: Can someone explain this... Pin
OriginalGriff19-Oct-12 1:35
mveOriginalGriff19-Oct-12 1:35 
GeneralRe: Can someone explain this... Pin
Bernhard Hiller12-Oct-12 3:14
Bernhard Hiller12-Oct-12 3:14 
GeneralRe: Can someone explain this... Pin
Alan N12-Oct-12 7:04
Alan N12-Oct-12 7:04 
AnswerRe: Can someone explain this... Pin
V.12-Oct-12 3:22
professionalV.12-Oct-12 3:22 
QuestionHow to Check Printer Status using SNMP and c# Pin
batuhan karaduman11-Oct-12 22:14
batuhan karaduman11-Oct-12 22:14 
XML
String snmpAgent = "ipAddressOfPrinter";
String snmpCommunity = "public";
SimpleSnmp snmp = new SimpleSnmp(snmpAgent, snmpCommunity);
Dictionary<SnmpSharpNet.Oid, AsnType> result = snmp.Get(SnmpSharpNet.SnmpVersion.Ver1, new string[] { "OidOfPrinter" });
if (result == null)
{
    MessageBox.Show("Request Failed", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{

    foreach (KeyValuePair<SnmpSharpNet.Oid, AsnType> entry in result)
    {
        textBox1.Text = entry.Key.ToString() + " = " + SnmpConstants.GetTypeName(entry.Value.Type) + " (SysDesc.): " + entry.Value.ToString() + "->


here is the connection to the printer. I can get the name, properties, software etc. of the printer, but i cant get the status of the printer(if it is online, offline, toner level, paper status, etc.) can you help me to code this?

Thanks a lot for your ideas and helps.
AnswerRe: How to Check Printer Status using SNMP and c# Pin
OriginalGriff12-Oct-12 1:52
mveOriginalGriff12-Oct-12 1:52 
AnswerRe: How to Check Printer Status using SNMP and c# Pin
Eddy Vluggen12-Oct-12 1:54
professionalEddy Vluggen12-Oct-12 1:54 
QuestionOpinion on Exception Pin
Richard Andrew x6411-Oct-12 15:04
professionalRichard Andrew x6411-Oct-12 15:04 

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.