Posts

Showing posts from January, 2019

[Test] ทดสอบโปรเจคการซูมรูปภาพจาก PictureBox ด้วย ScrollBar ของ JohnWillemse และเพิ่มพิกัด x, y บนรูปภาพ

Image
ดาวน์โหลดไฟล์ไบนารี(CP)   ที่มาของปัญหา   โค้ดต้นฉบับ

[Test] การเปลี่ยนการทำงานของปุ่ม Enter เป็นปุ่ม Tab ใน Edit mode ของ DataGridView และการกำหนดรูปแบบของ datetime ใน DataGridViewTextBoxColumn

Image
ดาวน์โหลด binary   *ไฟล์ไบนารี่เป็นแบบปิด (CP) ที่มาของปัญหา

Code Formatting Test

public void ExecuteCommandSync(object command) { try { // create the ProcessStartInfo using "cmd" as the program to be run, // and "/c " as the parameters. // Incidentally, /c tells cmd that we want it to execute the command that follows, // and then exit. System.Diagnostics.ProcessStartInfo procStartInfo = new System.Diagnostics.ProcessStartInfo("cmd", "/c " + command); // The following commands are needed to redirect the standard output. // This means that it will be redirected to the Process.StandardOutput StreamReader. procStartInfo.RedirectStandardOutput = true; procStartInfo.UseShellExecute = false; // Do not create the black window. procStartInfo.CreateNoWindow = true; // Now we create a process, assign its ProcessStartInfo and start it System.Diagnostics.Process proc = new System.D