level 3
窗体跳转,最简单了,跳转N次。
或者制作两个按钮,只要鼠标靠近那个正确答案的按钮就移动,不要让他点到。
2014年10月08日 05点10分
5
具体点?我是新手~
2014年10月08日 10点10分
level 3
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace testwin
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
button2.BringToFront();
}
private void button2_MouseEnter(object sender, EventArgs e)
{
Random r = new Random();
int x = r.Next(this.ClientSize.Width - this.button2.Width);
int y = r.Next(this.ClientSize.Height - this.button2.Height);
this.button2.Location = new Point(x, y);
}
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show(" 测试结果:是吧是吧!承认自己是笨蛋了吧~ 哈哈!!!");
}
private void button2_Click(object sender, EventArgs e)
{
MessageBox.Show(" 我艹!这你都能点到?肯花这么多功夫点我,果然有笨蛋天赋!!!");
}
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
{
MessageBox.Show(" 关闭了也改变不了你是笨蛋的事实!~\n\n ^ _ ^");
}
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Tab || keyData == Keys.Right || keyData == Keys.Left || keyData == Keys.Up || keyData == Keys.Down)
{
button2.Focus();
}
return false;
}
}
}
2014年10月09日 02点10分
6
level 9
搞一个窗体,然后加一个dowhile循环一打开窗体就会一整刷,直到你内存耗尽,
2014年11月24日 07点11分
8
level 9
或者可以利用shutdown关机命令来让他一打开电脑就会关机,时间设置成0秒让他没时间撤销关机
2014年11月24日 07点11分
9
这个有点恐怖啊!
2014年11月27日 15点11分
回复 20真真08 :嘿嘿
2014年11月27日 21点11分