Click here to Skip to main content
14,825,439 members
Home / Discussions / C#
   

C#

 
AnswerRe: Fancy search function Pin
nelsonpaixao4-Aug-08 12:58
Membernelsonpaixao4-Aug-08 12:58 
QuestionHow do I make a formless windows application? Pin
I_Need_Help4-Aug-08 4:50
MemberI_Need_Help4-Aug-08 4:50 
AnswerRe: How do I make a formless windows application? Pin
Gulfraz Khan4-Aug-08 4:58
MemberGulfraz Khan4-Aug-08 4:58 
AnswerRe: How do I make a formless windows application? Pin
vikas amin4-Aug-08 5:31
Membervikas amin4-Aug-08 5:31 
GeneralRe: How do I make a formless windows application? Pin
vikas amin4-Aug-08 7:16
Membervikas amin4-Aug-08 7:16 
Questiongetting result from the cmd prompt Pin
lune124-Aug-08 4:44
Memberlune124-Aug-08 4:44 
AnswerRe: getting result from the cmd prompt [modified] Pin
vikas amin4-Aug-08 5:41
Membervikas amin4-Aug-08 5:41 
AnswerRe: getting result from the cmd prompt Pin
smilethat4-Aug-08 6:45
Membersmilethat4-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
Memberlune125-Aug-08 20:58 
QuestionData entry validation and databinding Pin
Gulfraz Khan4-Aug-08 4:20
MemberGulfraz Khan4-Aug-08 4:20 
QuestionLoad Report Failed Pin
Er.bRijal4-Aug-08 3:49
MemberEr.bRijal4-Aug-08 3:49 
QuestionRe: Load Report Failed Pin
selcuks4-Aug-08 4:43
Memberselcuks4-Aug-08 4:43 
QuestionPass Paramters from Popup to page Pin
Agweet4-Aug-08 3:45
MemberAgweet4-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
MemberAgweet4-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
MemberAgweet4-Aug-08 20:23 
QuestionNot authorization to run a downloaded project Pin
Mauro Vezzoli4-Aug-08 3:40
MemberMauro Vezzoli4-Aug-08 3:40 
AnswerRe: Not authorization to run a downloaded project Pin
John Ad4-Aug-08 4:09
MemberJohn Ad4-Aug-08 4:09 
QuestionDomain (not host) from url Pin
Dana Tov4-Aug-08 3:20
MemberDana Tov4-Aug-08 3:20 
AnswerRe: Domain (not host) from url Pin
leppie4-Aug-08 3:22
Memberleppie4-Aug-08 3:22 
GeneralRe: Domain (not host) from url Pin
Dana Tov4-Aug-08 3:29
MemberDana 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
MemberNeutronMass4-Aug-08 3:17 
AnswerRe: Hot to detect a mouse hit on an image Pin
Dana Tov4-Aug-08 3:25
MemberDana 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.