Click here to Skip to main content
16,005,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: Playing Videos with C# Pin
Judah Gabriel Himango10-Aug-05 8:49
sponsorJudah Gabriel Himango10-Aug-05 8:49 
GeneralRe: Playing Videos with C# Pin
Anonymous11-Aug-05 3:23
Anonymous11-Aug-05 3:23 
GeneralNumericUpDown Control and the tab key Pin
Yigal Agam10-Aug-05 6:00
Yigal Agam10-Aug-05 6:00 
GeneralRe: NumericUpDown Control and the tab key Pin
Dan Neely10-Aug-05 7:08
Dan Neely10-Aug-05 7:08 
GeneralDataset Pin
webhay10-Aug-05 5:42
webhay10-Aug-05 5:42 
GeneralRe: Dataset Pin
Alomgir Miah10-Aug-05 5:57
Alomgir Miah10-Aug-05 5:57 
GeneralRe: Dataset Pin
webhay10-Aug-05 6:05
webhay10-Aug-05 6:05 
QuestionTimeout for diagnostics.process connection to remote host??? Pin
Colin Wheeler10-Aug-05 5:42
Colin Wheeler10-Aug-05 5:42 
Hi all,

Using the following code under Visual Studio 2005 with .NET beta 2, I am looking for a way for the connection to timeout (in say 5 seconds) if it can't contact the host specified. Any ideas?
---
public string m_GetProcessList(string v_host, string v_processname)
{
string sendback = "";
Process currentProcess = Process.GetCurrentProcess();
Process[] remoteAll = Process.GetProcesses(v_host);
int v_processcount = 0;
string v_processIDs = "";
foreach (Process v_process in remoteAll)
{
if (v_process.ProcessName.ToLower() == v_processname.ToLower())
{
v_processcount = v_processcount + 1;
v_processIDs = v_processIDs + v_process.Id.ToString() + v_process.StartInfo.Arguments.ToString() + ",";
}
}
sendback = v_host + " - " + v_processname + " - " + v_processcount.ToString() + " - " + v_processIDs;
return sendback;
}
---
Thanks all.

Colin Wheeler
Consultant
QuestionHow do I load a new form and access varables from it? Pin
Mutty10-Aug-05 5:27
Mutty10-Aug-05 5:27 
AnswerRe: How do I load a new form and access varables from it? Pin
Mohamad Al Husseiny10-Aug-05 5:36
Mohamad Al Husseiny10-Aug-05 5:36 
GeneralRe: How do I load a new form and access varables from it? Pin
Mutty10-Aug-05 15:27
Mutty10-Aug-05 15:27 
GeneralRe: How do I load a new form and access varables from it? Pin
Anonymous11-Aug-05 3:27
Anonymous11-Aug-05 3:27 
GeneralRe: How do I load a new form and access varables from it? Pin
Mohamad Al Husseiny11-Aug-05 5:02
Mohamad Al Husseiny11-Aug-05 5:02 
GeneralNunit for Databases Pin
Anonymous10-Aug-05 5:08
Anonymous10-Aug-05 5:08 
GeneralRe: Nunit for Databases Pin
Rob Graham10-Aug-05 5:20
Rob Graham10-Aug-05 5:20 
GeneralRe: Nunit for Databases Pin
Anonymous10-Aug-05 5:25
Anonymous10-Aug-05 5:25 
GeneralRe: Nunit for Databases Pin
Anonymous10-Aug-05 7:54
Anonymous10-Aug-05 7:54 
GeneralRe: Nunit for Databases Pin
OmegaMan11-Aug-05 11:00
OmegaMan11-Aug-05 11:00 
QuestionHow to programmatically set the focus on a selected tree node? Pin
bouli10-Aug-05 4:18
bouli10-Aug-05 4:18 
AnswerRe: How to programmatically set the focus on a selected tree node? Pin
Ankit Sgl10-Aug-05 4:26
Ankit Sgl10-Aug-05 4:26 
GeneralRe: How to programmatically set the focus on a selected tree node? Pin
bouli10-Aug-05 5:22
bouli10-Aug-05 5:22 
GeneralStopping Window Service to start Pin
Ankit Sgl10-Aug-05 4:11
Ankit Sgl10-Aug-05 4:11 
AnswerRe: Stopping Window Service to start Pin
Heath Stewart10-Aug-05 5:06
protectorHeath Stewart10-Aug-05 5:06 
Generalwindows service Pin
horacyjr10-Aug-05 3:18
horacyjr10-Aug-05 3:18 
GeneralRe: windows service Pin
Darryl Borden10-Aug-05 3:56
Darryl Borden10-Aug-05 3:56 

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.