منتدى فيجوال بيسك لكل العرب | منتدى المبرمجين العرب

نسخة كاملة : لفتح ملف exe من خلال مشروعك C#
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
كاتب الموضوع : 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]