using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace AutoRun
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//设置开机启动
private void btnSet_Click(object sender, EventArgs e)
{
Microsoft.Win32.Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"
, Application.ProductName, Application.StartupPath + Application.ProductName);
}
//C# WinForm打开超链接
private void Form1_Load(object sender, EventArgs e)
{
System.Diagnostics.Process.Start("iexplore.exe", "http://revit.5d6d.com");
}
}
}
本文作者:网友 来源:网络
CIO之家 www.ciozj.com 微信公众号:imciow