zoukankan      html  css  js  c++  java
  • 模仿了一下网上不想上课的那个小程序。。。。

    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }
    private void button2_MouseEnter(object sender, EventArgs e)
    {
    button2_MouseHover(null, null);
    }
    Point p1 = new Point();
    private void button1_Click(object sender, EventArgs e)
    {
    MessageBox.Show("你真是个好孩子!(づ ̄ 3 ̄)づ");
    this.Close();
    }
    private void button2_Click(object sender, EventArgs e)
    {
    button2.Location = p1;
    }
    private void button2_MouseHover(object sender, EventArgs e)
    {
    if (p1 != button2.Location)
    {
    button2.Location = p1;
    }
    else
    {
    Point p = new Point();
    p.X = 1;
    p.Y = 1;
    button2.Location = p;
    }
    }
    private void Form1_Load(object sender, EventArgs e)
    {
    p1 = button2.Location;
    }
    }

    人最宝贵的就是生命,生命对于每个人来说只有一次。人的一生应该这样度过:回首往事,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞愧;临终之际,他能够说:“我的整个生命和全部精力,都献给了世界上最壮丽的事业——为解放全人类而斗争。”
  • 相关阅读:
    bat命令2
    bat实现创建、复制、删除文件及文件夹
    bat命令1
    ckeditor使用教程
    统计SqlServer每张表内的数据量
    entiryFramework 事务控制
    jQuery验证控件jquery.validate.js使用说明
    asp.net中套用母版页之后的findcontrol
    SessionState
    窗体单例问题
  • 原文地址:https://www.cnblogs.com/Imgiser/p/5842821.html
Copyright © 2011-2022 走看看