C#旅途之窗口化程序~百度

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            linkLabel1.LinkColor = Color.Blue;
            linkLabel1.ActiveLinkColor = Color.Green;
            label1.Font = new Font("楷体", 12);
            linkLabel1.Font = new Font("楷体", 12);
            linkLabel1.Text = "我就是百度";
            label1.Text = "点击下方链接进入百度";
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
    
            System.Diagnostics.Process.Start("www.baidu.com");
        }

        private void label1_Click(object sender, EventArgs e)
        {
        }
    }
}

第一次做小软件,很开心;

源代码存在这里;

 



你可能感兴趣的:(C#旅途之窗口化程序~百度)