Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
Questiongetting a handle to an embedded flash movie inside a webbrowser Pin
jeanbern15-Apr-09 7:00
jeanbern15-Apr-09 7:00 
QuestionCannot connect to SQL Server 2005 Pin
arimao15-Apr-09 6:38
arimao15-Apr-09 6:38 
AnswerRe: Cannot connect to SQL Server 2005 Pin
stonebergftw15-Apr-09 8:54
stonebergftw15-Apr-09 8:54 
GeneralRe: Cannot connect to SQL Server 2005 Pin
arimao15-Apr-09 9:14
arimao15-Apr-09 9:14 
GeneralRe: Cannot connect to SQL Server 2005 Pin
stonebergftw15-Apr-09 10:32
stonebergftw15-Apr-09 10:32 
QuestionHow to Scan Remote PC For UDP Open & Closed Ports? Pin
alparody15-Apr-09 6:34
alparody15-Apr-09 6:34 
QuestionInvoking a WMI method on a Remote Machine Pin
bbranded15-Apr-09 6:05
bbranded15-Apr-09 6:05 
AnswerRe: Invoking a WMI method on a Remote Machine Pin
bbranded15-Apr-09 8:22
bbranded15-Apr-09 8:22 
Here's the solution....

Tweak query as desired...

private void button7_Click(object sender, EventArgs e)
      {

          string TargetMachine = textBox2.Text;



          ManagementPath path = new ManagementPath("\\\\" + TargetMachine + "\\root\\microsoftdfs");

          ManagementScope scope = new ManagementScope(path);

          SelectQuery msQuery = new SelectQuery("SELECT * FROM DfsrReplicatedFolderInfo");

          ManagementObjectSearcher searchProcedure = new ManagementObjectSearcher(scope, msQuery);



          object[] methodArgs = { "" };


          foreach (ManagementObject item in searchProcedure.Get())
          {
              try
              {
                  item.InvokeMethod("GetVersionVector", methodArgs);

                  foreach (string returned in methodArgs)
                  {
                      MessageBox.Show(returned.ToString());
                  }
              }

              catch (SystemException excep)
              {
                  MessageBox.Show(excep.Message);
              }

          }
      }

Questionsynchronous and asynchronous communication Pin
yesu prakash15-Apr-09 5:52
yesu prakash15-Apr-09 5:52 
AnswerRe: synchronous and asynchronous communication Pin
0x3c015-Apr-09 6:29
0x3c015-Apr-09 6:29 
GeneralRe: synchronous and asynchronous communication Pin
yesu prakash15-Apr-09 18:08
yesu prakash15-Apr-09 18:08 
QuestionProblem in disabling close button(X) of window. Pin
priyamtheone15-Apr-09 5:25
priyamtheone15-Apr-09 5:25 
AnswerRe: Problem in disabling close button(X) of window. [modified] Pin
DaveyM6915-Apr-09 5:31
professionalDaveyM6915-Apr-09 5:31 
AnswerRe: Problem in disabling close button(X) of window. Pin
agent00zelda15-Apr-09 5:32
agent00zelda15-Apr-09 5:32 
GeneralRe: Problem in disabling close button(X) of window. Pin
priyamtheone15-Apr-09 20:16
priyamtheone15-Apr-09 20:16 
AnswerRe: Problem in disabling close button(X) of window. Pin
Luc 64801115-Apr-09 5:40
Luc 64801115-Apr-09 5:40 
AnswerRe: Problem in disabling close button(X) of window. Pin
DaveyM6915-Apr-09 5:43
professionalDaveyM6915-Apr-09 5:43 
AnswerRe: Problem in disabling close button(X) of window. Pin
PIEBALDconsult15-Apr-09 6:03
mvePIEBALDconsult15-Apr-09 6:03 
NewsRe: Problem in disabling close button(X) of window. Pin
priyamtheone15-Apr-09 21:25
priyamtheone15-Apr-09 21:25 
QuestionSIteMap Pin
kibromg15-Apr-09 4:02
kibromg15-Apr-09 4:02 
AnswerRe: SIteMap Pin
hat_master15-Apr-09 6:04
hat_master15-Apr-09 6:04 
GeneralRe: SIteMap Pin
kibromg15-Apr-09 6:36
kibromg15-Apr-09 6:36 
AnswerRe: SIteMap Pin
hat_master15-Apr-09 7:18
hat_master15-Apr-09 7:18 
GeneralRe: SIteMap Pin
kibromg16-Apr-09 0:54
kibromg16-Apr-09 0:54 
QuestionStopping a Windows Service in a Timely Manner... Pin
agent00zelda15-Apr-09 3:42
agent00zelda15-Apr-09 3:42 

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.