資源簡介
00后搞笑辭職信
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.Runtime.InteropServices;
using?System.Threading;
namespace?JokeResign
{
????public?partial?class?Form1?:?Form
????{?
????????public?Form1()
????????{
????????????InitializeComponent();
????????????this.BackgroundImage?=?Image.FromFile(System.IO.Path.GetFullPath(“../../Leave.jpg“));?
????????}
????????///?
????????///?禁止關閉
????????///?
????????///?
????????protected?override?void?WndProc(ref?Message?m)
????????{
????????????const?int?WM_SYSCOMMAND?=?0x0112;
????????????const?int?SC_CLOSE?=?0xF060;
????????????if?(m.Msg?==?WM_SYSCOMMAND?&&?(int)m.WParam?==?SC_CLOSE)
????????????{
????????????????MessageBox.Show(“想跑?不可能!“);
????????????????return;
????????????}
????????????base.WndProc(ref?m);
????????}
????????//同意
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????this.BackgroundImage?=?Image.FromFile(System.IO.Path.GetFullPath(“../../Go.jpg“));?
????????????button1.Visible?=?false;
????????????button2.Visible?=?false;?
????????????
????????????Thread.Sleep(5000);
????????????this.Close();
????????????this.Dispose();
?????????????
????????}
????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????Random?rd=new?Random();
????????????int?x=?rd.Next(this.Location.X);
????????????int?y=rd.Next(this.Location.Y);
????????????button2.Location?=?new?Point(x?y);
????????}
????????private?void?Form1_MouseMove(object?sender?MouseEventArgs?e)
????????{
????????????//label1.Text?=?e.X.ToString();
????????????//label2.Text?=?e.Y.ToString();
????????????//label3.Text?=?button2.Location.X.ToString();
????????????//label4.Text?=?button2.Location.Y.ToString();
????????????//label5.Text?=?(button2.Location.X?+?button2.Width).ToString();
????????????//label6.Text?=?(button2.Location.Y?+?button2.Height).ToString();
????????????if?(e.X?>=?button2.Location.X-5?&&?e.X?<=?button2.Location.X+button2.Width+5
???????????????&&?e.Y?>=?button2.Location.Y-5?&&?e.Y?<=?button2.Location.Y?+?button2.Height+5
????????????????)
????????????{
????????????????Random?rd?=?new?Random();
????????????????int?x?=?rd.Next(20this.Width-30);
????????????????int?y?=?rd.Next(20this.Height-90);
????????????????button2.Location?=?new?Point(x?y);
????????????}
????????}
????}
????
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????45056??2021-11-01?17:14??JokeResign\JokeResign\bin\Debug\JokeResign.exe
?????文件??????22016??2021-11-01?17:14??JokeResign\JokeResign\bin\Debug\JokeResign.pdb
?????文件??????14328??2021-11-01?16:54??JokeResign\JokeResign\bin\Debug\JokeResign.vshost.exe
?????文件????????490??2009-06-11?05:14??JokeResign\JokeResign\bin\Debug\JokeResign.vshost.exe.manifest
?????文件???????2591??2021-11-01?17:13??JokeResign\JokeResign\Form1.cs
?????文件???????3198??2021-11-01?17:10??JokeResign\JokeResign\Form1.Designer.cs
?????文件???????5814??2021-11-01?17:10??JokeResign\JokeResign\Form1.resx
?????文件??????25469??2020-12-26?14:10??JokeResign\JokeResign\Go.jpg
?????文件???????3851??2020-12-26?14:14??JokeResign\JokeResign\JokeResign.csproj
?????文件???????9935??2020-12-26?13:41??JokeResign\JokeResign\Leave.jpg
?????文件???????1506??2021-11-01?17:14??JokeResign\JokeResign\obj\Debug\JokeResign.csproj.FileListAbsolute.txt
?????文件????????847??2021-11-01?17:14??JokeResign\JokeResign\obj\Debug\JokeResign.csproj.GenerateResource.Cache
?????文件??????45056??2021-11-01?17:14??JokeResign\JokeResign\obj\Debug\JokeResign.exe
?????文件????????180??2021-11-01?17:14??JokeResign\JokeResign\obj\Debug\JokeResign.Form1.resources
?????文件??????22016??2021-11-01?17:14??JokeResign\JokeResign\obj\Debug\JokeResign.pdb
?????文件????????180??2021-11-01?17:14??JokeResign\JokeResign\obj\Debug\JokeResign.Properties.Resources.resources
?????文件????????491??2020-12-26?13:40??JokeResign\JokeResign\Program.cs
?????文件???????1352??2020-12-26?13:40??JokeResign\JokeResign\Properties\AssemblyInfo.cs
?????文件???????2870??2020-12-26?13:40??JokeResign\JokeResign\Properties\Resources.Designer.cs
?????文件???????5612??2020-12-26?13:40??JokeResign\JokeResign\Properties\Resources.resx
?????文件???????1095??2020-12-26?13:40??JokeResign\JokeResign\Properties\Settings.Designer.cs
?????文件????????249??2020-12-26?13:40??JokeResign\JokeResign\Properties\Settings.settings
?????文件????????920??2020-12-26?13:40??JokeResign\JokeResign.sln
????..A..H.??????7680??2020-12-26?13:40??JokeResign\JokeResign.suo
?????目錄??????????0??2020-12-26?13:40??JokeResign\JokeResign\obj\Debug\TempPE
?????目錄??????????0??2021-11-01?17:14??JokeResign\JokeResign\bin\Debug
?????目錄??????????0??2021-11-01?17:14??JokeResign\JokeResign\obj\Debug
?????目錄??????????0??2020-12-26?13:40??JokeResign\JokeResign\bin
?????目錄??????????0??2020-12-26?13:40??JokeResign\JokeResign\obj
?????目錄??????????0??2020-12-26?13:40??JokeResign\JokeResign\Properties
............此處省略5個文件信息
- 上一篇:c# 多線程傳圖片
- 下一篇:配置文件內容加密工具源碼(基于ba
se64)
評論
共有 條評論