This has been bugging me for a while now.
I use TelNet to pass commands to a Unix box. I wanted to embed the TelNet interface into a Winform application.
I concentrated on embedding a console app within the winform app. WRONG.
I used TelNet libraries and messed around looking to use RichTextBoxes. WRONG.
Well. Probably not that wrong, they mostly worked but weren't very good.
Here is what I have done:
Process TelNet = new Process();
TelNet.StartInfo.FileName = "TelNet.exe";
TelNet.Start();
If you need any more clarification please leave.
This prevents cross-thrreading issues, launching new applications and all sorts of problems.
It works for me. I know it's simple. It's all I require.
I started keeping notes on things I used a lot, or that took care of a difficult problem. On looking for something I couldn't remember how to do, and spending 30 minutes going through notes and SSIS projects, I decided to create this blog. Lots of SQL, BI, Web, Winforms, Spotifre, R, Python and whatever I happen to be working in when I decide to post something I find interesting.
Showing posts with label Process. Show all posts
Showing posts with label Process. Show all posts
Thursday, 7 February 2013
Subscribe to:
Posts (Atom)