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

C#

 
QuestionXmlSerializer doesn't write the namespace Pin
buchstaben15-Apr-10 4:02
buchstaben15-Apr-10 4:02 
AnswerRe: XmlSerializer doesn't write the namespace Pin
Tarakeshwar Reddy15-Apr-10 4:54
professionalTarakeshwar Reddy15-Apr-10 4:54 
QuestionRe: XmlSerializer doesn't write the namespace Pin
buchstaben15-Apr-10 19:43
buchstaben15-Apr-10 19:43 
AnswerRe: XmlSerializer doesn't write the namespace Pin
Tarakeshwar Reddy16-Apr-10 5:01
professionalTarakeshwar Reddy16-Apr-10 5:01 
GeneralRe: XmlSerializer doesn't write the namespace Pin
buchstaben18-Apr-10 20:20
buchstaben18-Apr-10 20:20 
QuestionMessage Removed Pin
15-Apr-10 1:56
kulkarni.ajay15-Apr-10 1:56 
AnswerRe: How to solve->Could not connect to remote machine error Pin
Calla15-Apr-10 3:41
Calla15-Apr-10 3:41 
GeneralRe: How to solve->Could not connect to remote machine error Pin
kulkarni.ajay15-Apr-10 3:57
kulkarni.ajay15-Apr-10 3:57 
Hi,

Thanks for the reply.

please look at the code

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Diagnostics;

using System.ServiceProcess;
using System.IO;
using System.Collections;

namespace ListNetworkComputers
{
public partial class frmMain : Form
{
public frmMain()
{
InitializeComponent();
}
private void frmMain_Load(object sender, EventArgs e)
{
try
{
NetworkBrowser nb = new NetworkBrowser();

foreach (string pc in nb.getNetworkComputers())
{
cmbNetworkComputers.Items.Add(pc);
}
}
catch (Exception ex)
{
throw ex;
}
}
private void cmbNetworkComputers_SelectedIndexChanged(object sender, EventArgs e)
{
string nm = cmbNetworkComputers.Text.ToString();

IPHostEntry ip = Dns.GetHostEntry(nm);
string hostip = ip.AddressList[0].ToString();
Process[] ipByName = Process.GetProcesses(nm);
foreach (Process p in ipByName)
{
cmbIPList.Items.Add(p.ProcessName.ToString());
}

}
}
}


as i am not able to attach my project here so I am getting error at Process[] ipByName = Process.GetProcesses(nm);
My application is present On Server and remaining are clients.
So i want to get all the processes of clients

Thanks
Ajay Kulkarni.
GeneralRe: How to solve->Could not connect to remote machine error Pin
OriginalGriff15-Apr-10 4:17
mveOriginalGriff15-Apr-10 4:17 
JokeRe: How to solve->Could not connect to remote machine error Pin
Calla15-Apr-10 21:27
Calla15-Apr-10 21:27 
GeneralRe: How to solve->Could not connect to remote machine error Pin
Luc Pattyn6-May-10 2:07
sitebuilderLuc Pattyn6-May-10 2:07 
AnswerRe: How to solve->Could not connect to remote machine error Pin
Rod Kemp15-Apr-10 18:39
Rod Kemp15-Apr-10 18:39 
QuestionData relations and data set Pin
eli1502197915-Apr-10 0:53
eli1502197915-Apr-10 0:53 
QuestionLocal database path in csharp Pin
Tunisien8615-Apr-10 0:13
Tunisien8615-Apr-10 0:13 
AnswerRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 0:20
Michel Godfroid15-Apr-10 0:20 
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 0:25
Tunisien8615-Apr-10 0:25 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 0:41
Michel Godfroid15-Apr-10 0:41 
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 3:49
Tunisien8615-Apr-10 3:49 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 4:16
Michel Godfroid15-Apr-10 4:16 
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 4:47
Tunisien8615-Apr-10 4:47 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 5:24
Michel Godfroid15-Apr-10 5:24 
GeneralRe: Local database path in csharp Pin
Tunisien8615-Apr-10 6:23
Tunisien8615-Apr-10 6:23 
GeneralRe: Local database path in csharp Pin
Michel Godfroid15-Apr-10 6:50
Michel Godfroid15-Apr-10 6:50 
GeneralRe: Local database path in csharp Pin
Tunisien8616-Apr-10 0:26
Tunisien8616-Apr-10 0:26 
GeneralRe: Local database path in csharp Pin
Michel Godfroid16-Apr-10 0:50
Michel Godfroid16-Apr-10 0:50 

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.