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

C#

 
GeneralRe: Send data toServer with two parameters Pin
Richard MacCutchan19-Apr-18 21:53
mveRichard MacCutchan19-Apr-18 21:53 
QuestionReading a specific portion of a text file Pin
Member 1377871518-Apr-18 4:42
Member 1377871518-Apr-18 4:42 
AnswerRe: Reading a specific portion of a text file Pin
OriginalGriff18-Apr-18 4:59
mveOriginalGriff18-Apr-18 4:59 
GeneralRe: Reading a specific portion of a text file Pin
Member 1377871518-Apr-18 7:34
Member 1377871518-Apr-18 7:34 
GeneralRe: Reading a specific portion of a text file Pin
OriginalGriff18-Apr-18 8:16
mveOriginalGriff18-Apr-18 8:16 
GeneralRe: Reading a specific portion of a text file Pin
Member 1377871518-Apr-18 11:29
Member 1377871518-Apr-18 11:29 
AnswerRe: Reading a specific portion of a text file Pin
Gerry Schmitz18-Apr-18 5:54
mveGerry Schmitz18-Apr-18 5:54 
QuestionManagementScope, did it get deprecated or something? Pin
Robert Oujesky18-Apr-18 4:38
Robert Oujesky18-Apr-18 4:38 
I got some really cool C# code from the article "Managing Printers Programatically using C# and WMI", by Raymund Macaalay.
I am struggling with the ManagementScope class. VS2017 cannot find it. Here is a code snippet from the article's code:

using System;
using System.Management;

class PrinterSettings
{
private static ManagementScope oManagementScope = null;

Intellisense seems completely ignorant of the ManagementScope class. MSDN.Microsoft.com states that it is in System.Management assembly.
I know I am not including something correctly and not deprecated, but kinda noobish on C#.

thanks!
AnswerRe: ManagementScope, did it get deprecated or something? Pin
OriginalGriff18-Apr-18 5:03
mveOriginalGriff18-Apr-18 5:03 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
Eddy Vluggen18-Apr-18 6:01
professionalEddy Vluggen18-Apr-18 6:01 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
OriginalGriff18-Apr-18 6:25
mveOriginalGriff18-Apr-18 6:25 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
Robert Oujesky18-Apr-18 6:25
Robert Oujesky18-Apr-18 6:25 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
OriginalGriff18-Apr-18 6:29
mveOriginalGriff18-Apr-18 6:29 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
Robert Oujesky18-Apr-18 6:41
Robert Oujesky18-Apr-18 6:41 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
Eddy Vluggen18-Apr-18 7:10
professionalEddy Vluggen18-Apr-18 7:10 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
OriginalGriff18-Apr-18 8:02
mveOriginalGriff18-Apr-18 8:02 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
Robert Oujesky18-Apr-18 8:49
Robert Oujesky18-Apr-18 8:49 
GeneralRe: ManagementScope, did it get deprecated or something? Pin
OriginalGriff18-Apr-18 9:15
mveOriginalGriff18-Apr-18 9:15 
QuestionHow can I add the distance value between the line(from point A to point B) in C#? Pin
Member 1378306217-Apr-18 22:27
Member 1378306217-Apr-18 22:27 
AnswerRe: How can I add the distance value between the line(from point A to point B) in C#? Pin
OriginalGriff17-Apr-18 22:35
mveOriginalGriff17-Apr-18 22:35 
AnswerRe: How can I add the distance value between the line(from point A to point B) in C#? Pin
V.17-Apr-18 23:56
professionalV.17-Apr-18 23:56 
AnswerRe: How can I add the distance value between the line(from point A to point B) in C#? Pin
Gerry Schmitz18-Apr-18 6:03
mveGerry Schmitz18-Apr-18 6:03 
Questionhow to deploy your software (set up) Pin
ago248617-Apr-18 6:03
ago248617-Apr-18 6:03 
AnswerRe: how to deploy your software (set up) Pin
Richard MacCutchan17-Apr-18 6:11
mveRichard MacCutchan17-Apr-18 6:11 
GeneralRe: how to deploy your software (set up) Pin
ago248617-Apr-18 6:20
ago248617-Apr-18 6:20 

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.