17-10-12, 05:32 PM
كاتب الموضوع : AhmedEssawy
كود :
[align=left][color=blue][FONT=Courier New]using[/FONT][/color][FONT=Courier New] System.Diagnostics;[/FONT]
[FONT=Courier New][color=blue]private[/color] [color=blue]void[/color] btnStartProcess_Click([color=blue]object[/color] sender, System.[color=teal]EventArgs[/color] e) [/FONT]
[FONT=Courier New]{[/FONT]
[FONT=Courier New][color=green]// Simple Demonstration of starting a process using the process class.[/color][/FONT]
[FONT=Courier New][color=teal]Process[/color].Start([color=maroon]"notepad.exe"[/color]);[/FONT]
[FONT=Courier New]}[/FONT][/align]