Click here to Skip to main content
15,905,504 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Pass Paramters from Popup to page Pin
Agweet4-Aug-08 20:23
Agweet4-Aug-08 20:23 
QuestionNot authorization to run a downloaded project Pin
Mauro Vezzoli4-Aug-08 3:40
Mauro Vezzoli4-Aug-08 3:40 
AnswerRe: Not authorization to run a downloaded project Pin
John Ad4-Aug-08 4:09
John Ad4-Aug-08 4:09 
QuestionDomain (not host) from url Pin
Dana Tov4-Aug-08 3:20
Dana Tov4-Aug-08 3:20 
AnswerRe: Domain (not host) from url Pin
leppie4-Aug-08 3:22
leppie4-Aug-08 3:22 
GeneralRe: Domain (not host) from url Pin
Dana Tov4-Aug-08 3:29
Dana Tov4-Aug-08 3:29 
AnswerRe: Domain (not host) from url Pin
Manas Bhardwaj7-Aug-08 6:02
professionalManas Bhardwaj7-Aug-08 6:02 
QuestionHow to detect a mouse hit on an image [modified] Pin
NeutronMass4-Aug-08 3:17
NeutronMass4-Aug-08 3:17 
AnswerRe: Hot to detect a mouse hit on an image Pin
Dana Tov4-Aug-08 3:25
Dana Tov4-Aug-08 3:25 

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.