Click here to Skip to main content
15,921,697 members
Home / Discussions / C#
   

C#

 
AnswerRe: change datagridview column name Pin
Gulfraz Khan4-Aug-08 6:06
Gulfraz Khan4-Aug-08 6:06 
GeneralRe: change datagridview column name Pin
nelsonpaixao4-Aug-08 12:53
nelsonpaixao4-Aug-08 12:53 
GeneralRe: change datagridview column name Pin
benjamin yap4-Aug-08 16:37
benjamin yap4-Aug-08 16:37 
QuestionFancy search function Pin
Dewald4-Aug-08 5:01
Dewald4-Aug-08 5:01 
AnswerRe: Fancy search function Pin
Gulfraz Khan4-Aug-08 5:13
Gulfraz Khan4-Aug-08 5:13 
AnswerRe: Fancy search function Pin
Guffa4-Aug-08 7:05
Guffa4-Aug-08 7:05 
AnswerRe: Fancy search function Pin
Guffa4-Aug-08 10:21
Guffa4-Aug-08 10:21 
GeneralRe: Fancy search function Pin
DaveyM694-Aug-08 10:34
professionalDaveyM694-Aug-08 10:34 
GeneralRe: Fancy search function Pin
Dewald4-Aug-08 20:19
Dewald4-Aug-08 20:19 
AnswerRe: Fancy search function Pin
nelsonpaixao4-Aug-08 12:58
nelsonpaixao4-Aug-08 12:58 
QuestionHow do I make a formless windows application? Pin
I_Need_Help4-Aug-08 4:50
I_Need_Help4-Aug-08 4:50 
AnswerRe: How do I make a formless windows application? Pin
Gulfraz Khan4-Aug-08 4:58
Gulfraz Khan4-Aug-08 4:58 
AnswerRe: How do I make a formless windows application? Pin
vikas amin4-Aug-08 5:31
vikas amin4-Aug-08 5:31 
GeneralRe: How do I make a formless windows application? Pin
vikas amin4-Aug-08 7:16
vikas amin4-Aug-08 7:16 
Questiongetting result from the cmd prompt Pin
lune124-Aug-08 4:44
lune124-Aug-08 4:44 
AnswerRe: getting result from the cmd prompt [modified] Pin
vikas amin4-Aug-08 5:41
vikas amin4-Aug-08 5:41 
AnswerRe: getting result from the cmd prompt Pin
smilethat4-Aug-08 6:45
smilethat4-Aug-08 6:45 
you can do it like that:
Process p = new Process();
//Fill the StartInfo of the Process----"cmd.exe"
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;//important
p.StartInfo.RedirectStandardOutput = true;//important
p.StartInfo.RedirectStandardError = false;//true,the same...
p.StartInfo.CreateNoWindow = true;//important
string strResult;

p.Start();//start the process
//for example
p.StandardInput.WriteLine("ping www.google.com ");
p.StandardInput.WriteLine("exit");//important
strResult= p.StandardOutput.ReadToEnd();
// below...you want
if (strResult.IndexOf("( 0% loss )") != -1)
{
}
else
if (strResult.IndexOf("Destination host unreachable.") != -1)
{
}
else
if (strResult.IndexOf("Request timed out.") != -1)
{
}
else
if (strResult.IndexOf("Unknown host") != -1)
{
}
else
{
}
// if end

p.Close();//close the process
GeneralRe: getting result from the cmd prompt Pin
lune125-Aug-08 20:58
lune125-Aug-08 20:58 
QuestionData entry validation and databinding Pin
Gulfraz Khan4-Aug-08 4:20
Gulfraz Khan4-Aug-08 4:20 
QuestionLoad Report Failed Pin
Er.bRijal4-Aug-08 3:49
Er.bRijal4-Aug-08 3:49 
QuestionRe: Load Report Failed Pin
selcuks4-Aug-08 4:43
selcuks4-Aug-08 4:43 
QuestionPass Paramters from Popup to page Pin
Agweet4-Aug-08 3:45
Agweet4-Aug-08 3:45 
AnswerRe: Pass Paramters from Popup to page Pin
Alaric_4-Aug-08 3:57
professionalAlaric_4-Aug-08 3:57 
GeneralRe: Pass Paramters from Popup to page Pin
Agweet4-Aug-08 4:07
Agweet4-Aug-08 4:07 
AnswerRe: Pass Paramters from Popup to page Pin
DaveyM694-Aug-08 10:19
professionalDaveyM694-Aug-08 10:19 

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.