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

C#

 
QuestionWindows 10 Thin Border Cause a space issue compare to windows 8 Pin
Member 979968321-Mar-17 20:12
Member 979968321-Mar-17 20:12 
AnswerRe: Windows 10 Thin Border Cause a space issue compare to windows 8 Pin
Gerry Schmitz23-Mar-17 17:52
mveGerry Schmitz23-Mar-17 17:52 
QuestionGetting COM port list ? Pin
Member 245846721-Mar-17 16:44
Member 245846721-Mar-17 16:44 
AnswerRe: Getting COM port list ? Pin
Richard MacCutchan21-Mar-17 23:11
mveRichard MacCutchan21-Mar-17 23:11 
GeneralRe: Getting COM port list ? Pin
Member 245846722-Mar-17 15:28
Member 245846722-Mar-17 15:28 
AnswerRe: Getting COM port list ? Pin
Ralf Meier23-Mar-17 1:26
mveRalf Meier23-Mar-17 1:26 
AnswerRe: Getting COM port list ? Pin
Gerry Schmitz23-Mar-17 17:51
mveGerry Schmitz23-Mar-17 17:51 
QuestionDCMTK help needed Pin
Tetsuo_DarkK21-Mar-17 4:49
Tetsuo_DarkK21-Mar-17 4:49 
Hello, I have been working with C# for not very long. Less than a year and Im trying to use C#. My app basically adds in the argument needed such as host name, file location, etc to an app that acts like a listener for incoming dicom files(storescp.exe). My goal is to make this work as like an agent so one could start this app put in the arguments needed and click start and bobs ur uncle. However, when I do this storescp.exe goes into a listening mode like it should but until I kill that exe my app is frozen. My long winded question is how do I keep my app from freezing after I start storescu or storescp? Please help. I tryed using Awaiting Async but it didnt seem to work as I thought it would.


__________________

private void button2_Click(object sender, EventArgs e)
       {

           string port;
           port = textBox3.Text;
           string AE;
           AE = textBox1.Text;
           string dicompath;
           dicompath = textBox7.Text;
           string finalpath;
           finalpath = port + " -pm" + " --fork " + " -aet " + AE + " -od " + ((char)34) + dicompath + ((char)34);


           ProcessStartInfo startInfo2 = new ProcessStartInfo();
           startInfo2.CreateNoWindow = true;
           startInfo2.UseShellExecute = false;
           startInfo2.RedirectStandardOutput = true;
           startInfo2.WindowStyle = ProcessWindowStyle.Hidden;
           startInfo2.FileName = "storescp-tls";
           startInfo2.Arguments = finalpath;
           startInfo2.RedirectStandardOutput = true;
           //int seconds = await SleepAsync(2000);
           var proc = Process.Start(startInfo2);
           Thread.Sleep(10 * 1000);
           string s = proc.StandardOutput.ReadToEnd();
           string t = startInfo2.Arguments;
           //Just for troubleshooting arugments
           textBox2.Text = t;
           textBox8.Text = s;

AnswerRe: DCMTK help needed Pin
Richard MacCutchan21-Mar-17 4:56
mveRichard MacCutchan21-Mar-17 4:56 
QuestionQuick MEF Question Pin
Kevin Marois20-Mar-17 7:04
professionalKevin Marois20-Mar-17 7:04 
AnswerRe: Quick MEF Question Pin
Richard MacCutchan20-Mar-17 23:02
mveRichard MacCutchan20-Mar-17 23:02 
GeneralRe: Quick MEF Question Pin
Kevin Marois21-Mar-17 4:03
professionalKevin Marois21-Mar-17 4:03 
AnswerRe: Quick MEF Question Pin
Nathan Minier21-Mar-17 1:18
professionalNathan Minier21-Mar-17 1:18 
AnswerRe: Quick MEF Question Pin
Pete O'Hanlon21-Mar-17 4:31
mvePete O'Hanlon21-Mar-17 4:31 
QuestionJSON/C# Pin
Member 1306898319-Mar-17 1:01
Member 1306898319-Mar-17 1:01 
AnswerRe: JSON/C# Pin
OriginalGriff19-Mar-17 1:23
mveOriginalGriff19-Mar-17 1:23 
AnswerRe: JSON/C# Pin
John C Rayan21-Mar-17 22:56
professionalJohn C Rayan21-Mar-17 22:56 
QuestionImporting data from textfile to datagridview by c# Pin
Member 1260914418-Mar-17 13:38
Member 1260914418-Mar-17 13:38 
AnswerRe: Importing data from textfile to datagridview by c# Pin
Dave Kreskowiak18-Mar-17 16:01
mveDave Kreskowiak18-Mar-17 16:01 
AnswerRe: Importing data from textfile to datagridview by c# Pin
Pete O'Hanlon18-Mar-17 22:26
mvePete O'Hanlon18-Mar-17 22:26 
AnswerRe: Importing data from textfile to datagridview by c# Pin
User 418025420-Mar-17 9:23
User 418025420-Mar-17 9:23 
AnswerRe: Importing data from textfile to datagridview by c# Pin
khanhsk26-Mar-17 3:56
khanhsk26-Mar-17 3:56 
Questionforeach and Regex Pin
Member 1306667718-Mar-17 2:32
Member 1306667718-Mar-17 2:32 
AnswerRe: foreach and Regex Pin
OriginalGriff18-Mar-17 2:43
mveOriginalGriff18-Mar-17 2:43 
QuestionRun MEF Plugin In Thread Pin
Kevin Marois17-Mar-17 4:57
professionalKevin Marois17-Mar-17 4:57 

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.