Click here to Skip to main content
16,020,432 members
Home / Discussions / C#
   

C#

 
GeneralRe: Current Function/Property Name Using Reflection Pin
Shajeel12-Jun-08 22:31
Shajeel12-Jun-08 22:31 
QuestionCan Resharper find unused public members??? Pin
Member 391904912-Jun-08 14:47
Member 391904912-Jun-08 14:47 
AnswerRe: Can Resharper find unused public members??? Pin
Christian Graus12-Jun-08 15:30
protectorChristian Graus12-Jun-08 15:30 
GeneralRe: Can Resharper find unused public members??? Pin
Member 391904913-Jun-08 0:43
Member 391904913-Jun-08 0:43 
AnswerRe: Can Resharper find unused public members??? Pin
PIEBALDconsult12-Jun-08 17:04
mvePIEBALDconsult12-Jun-08 17:04 
GeneralRe: Can Resharper find unused public members??? Pin
Christian Graus12-Jun-08 17:18
protectorChristian Graus12-Jun-08 17:18 
AnswerRe: Can Resharper find unused public members??? Pin
Mark Churchill12-Jun-08 18:24
Mark Churchill12-Jun-08 18:24 
QuestionSending keystrokes to a process with no window? Pin
TomNZ12-Jun-08 14:30
TomNZ12-Jun-08 14:30 
I am attempting to create an application which hooks input and output of a console application (usually cmd.exe) running in a Process object, and render the output in a custom fashion. So far it works great (Check out http://tom.net.nz/consolewrapper/ if you're curious Smile | :) ) but difficulties are arising with passing through commonly used console keystrokes, such as TAB or Ctrl-C. The streams happily handle basic strings of course, but don't like advanced keys so much.

The Process is started as such:

<br />
// Set up the process for starting<br />
_process = new Process();<br />
_process.StartInfo.FileName = appName;<br />
_process.StartInfo.UseShellExecute = false;<br />
_process.StartInfo.RedirectStandardError = true;<br />
_process.StartInfo.RedirectStandardInput = true;<br />
_process.StartInfo.RedirectStandardOutput = true;<br />
_process.StartInfo.CreateNoWindow = true;<br />
<br />
// Start the process and hook the input/output<br />
_process.Start();<br />
<br />
_stderr = _process.StandardError;<br />
_stdout = _process.StandardOutput;<br />
_stdin = _process.StandardInput;


I have tried using SendKeys, but since the process has no window, it seems to send the keys directly back to my interface, causing a rather nasty feedback loop. There also seems to be no dice on passing keystrokes to a Stream.

I would really hate to have to re-invent the wheel on TAB completion etc! Any help or ideas appreciated!
QuestionGlobal Boolean Variable Pin
Illegal Operation12-Jun-08 13:37
Illegal Operation12-Jun-08 13:37 
AnswerRe: Global Boolean Variable Pin
Anthony Mushrow12-Jun-08 14:02
professionalAnthony Mushrow12-Jun-08 14:02 
AnswerRe: Global Boolean Variable Pin
Robert.C.Cartaino12-Jun-08 14:25
Robert.C.Cartaino12-Jun-08 14:25 
AnswerRe: Global Boolean Variable Pin
Christian Graus12-Jun-08 15:46
protectorChristian Graus12-Jun-08 15:46 
AnswerRe: Global Boolean Variable Pin
PIEBALDconsult12-Jun-08 17:06
mvePIEBALDconsult12-Jun-08 17:06 
AnswerRe: Global Boolean Variable Pin
Mark Churchill12-Jun-08 18:26
Mark Churchill12-Jun-08 18:26 
QuestionTone generation on the fly Pin
Klazen12-Jun-08 13:00
Klazen12-Jun-08 13:00 
AnswerRe: Tone generation on the fly Pin
PIEBALDconsult12-Jun-08 13:11
mvePIEBALDconsult12-Jun-08 13:11 
GeneralRe: Tone generation on the fly Pin
Klazen12-Jun-08 13:13
Klazen12-Jun-08 13:13 
GeneralRe: Tone generation on the fly Pin
PIEBALDconsult12-Jun-08 13:36
mvePIEBALDconsult12-Jun-08 13:36 
AnswerRe: Tone generation on the fly Pin
Anthony Mushrow12-Jun-08 13:56
professionalAnthony Mushrow12-Jun-08 13:56 
GeneralRe: Tone generation on the fly Pin
Klazen12-Jun-08 14:00
Klazen12-Jun-08 14:00 
GeneralRe: Tone generation on the fly Pin
PIEBALDconsult12-Jun-08 17:06
mvePIEBALDconsult12-Jun-08 17:06 
QuestionC# and the Icon Class Pin
Lea Hayes12-Jun-08 12:09
Lea Hayes12-Jun-08 12:09 
QuestionHow to Exract embedded files from RTF file? Pin
Anshuls12-Jun-08 10:50
Anshuls12-Jun-08 10:50 
AnswerRe: How to Exract embedded files from RTF file? Pin
Simon P Stevens12-Jun-08 23:10
Simon P Stevens12-Jun-08 23:10 
QuestionIdentity Column Problem(in TableAdapter.Update()) Pin
hdv21212-Jun-08 10:30
hdv21212-Jun-08 10:30 

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.