แสดงบทความที่มีป้ายกำกับ Auto-start For Windows Application แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ Auto-start For Windows Application แสดงบทความทั้งหมด

วันอังคารที่ 29 พฤศจิกายน พ.ศ. 2554

C#: Set And Unset Auto-start For Windows Application


I found this useful C# class in this MSDN forum that provides an easy way to enable and disable an application auto-run in Windows.

With a little modification, I made it to be easily called by any project. What you need to do is just pass in the 'Key Name' and 'Assembly Location' parameters.

Here is the complete class: