Это исходный код нового проекта для тестирования:
Код: Выделить всё
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace test
{
public partial class Form1 : Form
{
RegistryKey reg = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
public Form1()
{
InitializeComponent();
reg.SetValue("MyApdp", Application.ExecutablePath.ToString());
}
}
}

Я ожидаю, что мое приложение появится при запуске
Подробнее здесь: https://stackoverflow.com/questions/788 ... e-start-up