Click here to Skip to main content
15,891,698 members
Home / Discussions / C#
   

C#

 
AnswerRe: Delayed Clipboard rendering Pin
Ravi Bhavnani15-Dec-07 20:40
professionalRavi Bhavnani15-Dec-07 20:40 
GeneralOut of Memory Pin
MAW3015-Dec-07 15:41
MAW3015-Dec-07 15:41 
GeneralRe: Out of Memory Pin
Mark Churchill15-Dec-07 19:05
Mark Churchill15-Dec-07 19:05 
JokeRe: Out of Memory Pin
Vasudevan Deepak Kumar15-Dec-07 22:02
Vasudevan Deepak Kumar15-Dec-07 22:02 
AnswerRe: Out of Memory Pin
Guffa16-Dec-07 0:26
Guffa16-Dec-07 0:26 
GeneralOnline Messages / High Scores Pin
MasterSharp15-Dec-07 12:35
MasterSharp15-Dec-07 12:35 
GeneralRe: Online Messages / High Scores Pin
Christian Graus15-Dec-07 13:54
protectorChristian Graus15-Dec-07 13:54 
GeneralProblem to use System.Diagnostics.ProcessWindowStyle.Hidden. Pin
hdv21215-Dec-07 11:46
hdv21215-Dec-07 11:46 
hi i want, search in network for online computers by this code :
System.Diagnostics.Process pr = new System.Diagnostics.Process();<br />
            System.Diagnostics.ProcessStartInfo pstart = new System.Diagnostics.ProcessStartInfo("cmd.exe");<br />
            pstart.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;<br />
            pstart.UseShellExecute = false;<br />
            pstart.RedirectStandardOutput = true;<br />
            pstart.RedirectStandardInput = true;<br />
            pr.StartInfo = pstart;<br />
            pr.Start();<br />
            System.IO.StreamReader reader = pr.StandardOutput;<br />
            System.IO.StreamWriter writer = pr.StandardInput;<br />
            writer.WriteLine("net view");<br />
            writer.Close();<br />
            StringBuilder sb = new StringBuilder();<br />
<br />
            while (!reader.EndOfStream)<br />
            {<br />
                string line = reader.ReadLine();<br />
                if (line.StartsWith("\\"))<br />
                {<br />
                    line = line.Replace("\\", "");<br />
                    sb.AppendLine(line.TrimEnd(null));<br />
                }<br />
            }<br />
            this.textBox1.Text = sb.ToString();            <br />
            pr.WaitForExit();<br />
            pr.Close();

this code work correctly, but my problem is that when i set UseShellExecute property to false, this line of code :
pstart.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
does not work and cmd.exe was shown, how to solve this problem and prevent from show cmd.exe ?
thanks
GeneralRe: Problem to use System.Diagnostics.ProcessWindowStyle.Hidden. Pin
Luc Pattyn15-Dec-07 12:26
sitebuilderLuc Pattyn15-Dec-07 12:26 
GeneralRe: Problem to use System.Diagnostics.ProcessWindowStyle.Hidden. Pin
hdv21215-Dec-07 21:11
hdv21215-Dec-07 21:11 
GeneralRe: Problem to use System.Diagnostics.ProcessWindowStyle.Hidden. Pin
Giorgi Dalakishvili16-Dec-07 4:00
mentorGiorgi Dalakishvili16-Dec-07 4:00 
GeneralRe: Problem to use System.Diagnostics.ProcessWindowStyle.Hidden. Pin
hdv21216-Dec-07 9:45
hdv21216-Dec-07 9:45 
GeneralRe: Problem to use System.Diagnostics.ProcessWindowStyle.Hidden. Pin
Giorgi Dalakishvili16-Dec-07 20:28
mentorGiorgi Dalakishvili16-Dec-07 20:28 
QuestionConstant table? Pin
Y_R15-Dec-07 10:56
Y_R15-Dec-07 10:56 
AnswerRe: Constant table? Pin
Christian Graus15-Dec-07 13:59
protectorChristian Graus15-Dec-07 13:59 
GeneralRe: Constant table? Pin
Y_R15-Dec-07 20:15
Y_R15-Dec-07 20:15 
AnswerRe: Constant table? Pin
PIEBALDconsult16-Dec-07 16:40
mvePIEBALDconsult16-Dec-07 16:40 
GeneralRe: Constant table? Pin
Y_R16-Dec-07 19:44
Y_R16-Dec-07 19:44 
GeneralRe: Constant table? Pin
PIEBALDconsult17-Dec-07 4:54
mvePIEBALDconsult17-Dec-07 4:54 
QuestionHow to load HTML file using XmlDocument class Pin
El'Cachubrey15-Dec-07 10:13
El'Cachubrey15-Dec-07 10:13 
AnswerRe: How to load HTML file using XmlDocument class Pin
Christian Graus15-Dec-07 10:34
protectorChristian Graus15-Dec-07 10:34 
AnswerRe: How to load HTML file using XmlDocument class Pin
pmarfleet15-Dec-07 10:39
pmarfleet15-Dec-07 10:39 
AnswerRe: How to load HTML file using XmlDocument class Pin
Uwe Keim15-Dec-07 10:46
sitebuilderUwe Keim15-Dec-07 10:46 
AnswerRe: How to load HTML file using XmlDocument class Pin
El'Cachubrey16-Dec-07 8:35
El'Cachubrey16-Dec-07 8:35 
Questionhow to pick some records in datagrid Pin
E_Gold15-Dec-07 9:35
E_Gold15-Dec-07 9:35 

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.