Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
U

umseker

@umseker
About
Posts
7
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Writing redirected output from an unmanaged executable to a windows form control
    U umseker

    you are familiar to "..." block same as my first reply ... System.Diagnostics.Process pr = new System.Diagnostics.Process(); pr.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal; pr.StartInfo.FileName = "cmd.exe"; pr.StartInfo.UseShellExecute = false; pr.StartInfo.RedirectStandardInput = true; pr.StartInfo.RedirectStandardOutput = true; pr.Start(); pr.OutputDataReceived += new System.Diagnostics.DataReceivedEventHandler(pr_OutputDataReceived); pr.BeginOutputReadLine(); System.IO.StreamWriter swWriter = pr.StandardInput; swWriter.WriteLine("echo SomeTextHere\n"); swWriter.Flush(); ... //Define a delagate function delegate void SetTextCallback(string text); //Define a function for setting void SetText(string text) { if (this.textBox1.InvokeRequired) { SetTextCallback d = new SetTextCallback(SetText); this.Invoke(d, new object[] { text }); } else { this.textBox1.Text = text; } } void pr_OutputDataReceived(object sender, System.Diagnostics.DataReceivedEventArgs e) { //event fired and u have data use it thread-safe SetText(e.Data); } if this does not work define your problem with more details

    UMS

    C# help question database com tools

  • redirecting output from an unmanaged console application
    U umseker

    .... System.Diagnostics.Process pr = new System.Diagnostics.Process(); pr.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal; pr.StartInfo.FileName = "cmd.exe"; pr.StartInfo.UseShellExecute = false; pr.StartInfo.RedirectStandardInput = true; pr.StartInfo.RedirectStandardOutput = true; pr.Start(); pr.OutputDataReceived += new System.Diagnostics.DataReceivedEventHandler(pr_OutputDataReceived); pr.BeginOutputReadLine(); System.IO.StreamWriter swWriter = pr.StandardInput; swWriter.WriteLine("echo SomeTextHere\n"); swWriter.Flush(); .... void pr_OutputDataReceived(object sender, System.Diagnostics.DataReceivedEventArgs e) { MessageBox.Show(e.Data); }

    UMS

    C# help question

  • chat application
    U umseker

    A simple Multi-Threaded Server Client Instant Messenger Application[^]

    UMS

    C# question sysadmin help lounge learning

  • Grouping in Dataview
    U umseker

    it would be better using SQL + Group By but if this is not solution try this one HOW TO: Implement a DataSet GROUP BY Helper Class in Visual C# .NET[^]

    UMS

    C# sales

  • How to import a native dll in Pocket PC.
    U umseker

    Your syntax is correct be sure your dll compiled for correct CPU (for ex. arm )

    UMS

    Mobile csharp c++ debugging tutorial question

  • Drawing Connectors C# 2.0
    U umseker

    http://sourceforge.net/project/showfiles.php?group_id=169882[^]

    UMS

    C# graphics csharp database sql-server sysadmin

  • get Path from running instance of word ?
    U umseker

    ... Word.Application w= new Word.Application(); w = (Word.Application) System.Runtime.InteropServices.Marshal.GetActiveObject("Word.Application"); MessageBox.Show(w.ActiveDocument.Path); ...

    UMS

    C# question csharp
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups