• 大小: 0.08M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-04-27
  • 语言: C#
  • 标签: 挂机锁  C#  

资源简介

挂机锁,支持自定义提示

资源截图

代码片段和文件信息

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;

namespace Hangocks
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            _Init(); 
        }

        private void _Init()
        {

            textBox1.Text = “正在挂机,请勿打扰...“;
            this.MinimizeBox = false;
            this.MaximizeBox = false;
        }

        private void button1_Click(object sender EventArgs e)
        {
            if (textBox2.Text.Trim()==““ ||textBox3.Text.Trim()==““)
            {
                MessageBox.Show(“请输入密码!““提示“);
                return;
            }
            if (textBox2.Text.Trim() != textBox3.Text.Trim()) 
            {
                MessageBox.Show(“两次密码不一致!““提示“);
                return;
            }

            if (string.IsNullOrEmpty(textBox1.Text.Trim()))
            {
                textBox1.Text = “挂机中...“;
            }
            Form2 frm2 = new Form2();//实例化Frm_Browser窗体
            frm2.s = this.Size;//传递窗体大小
            frm2.X = this.Location.X;//传递窗体的X坐标
            frm2.Y = this.Location.Y;//传递窗体的Y坐标
            frm2.info = textBox1.Text.Trim();//传递挂机信息
            frm2.pwd = textBox2.Text.Trim();//传递解锁密码
            this.Hide();//隐藏当前窗体
            frm2.ShowDialog();//打开Frm_Browser窗体 

        }

        private void button2_Click(object sender EventArgs e)
        {
            Application.Exit();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      16384  2020-11-05 16:39  Hangocks\bin\Debug\Hangocks.exe

     文件      38400  2020-11-05 16:39  Hangocks\bin\Debug\Hangocks.pdb

     文件      14328  2020-11-05 16:02  Hangocks\bin\Debug\Hangocks.vshost.exe

     文件      15360  2020-11-05 16:02  Hangocks\bin\Release\Hangocks.exe

     文件      42496  2020-11-05 16:02  Hangocks\bin\Release\Hangocks.pdb

     文件      14328  2020-11-05 16:00  Hangocks\bin\Release\Hangocks.vshost.exe

     文件        490  2009-06-11 05:14  Hangocks\bin\Release\Hangocks.vshost.exe.manifest

     文件       1794  2020-11-05 15:52  Hangocks\Form1.cs

     文件       6017  2020-11-05 14:12  Hangocks\Form1.Designer.cs

     文件       5814  2020-11-05 14:12  Hangocks\Form1.resx

     文件       2645  2020-11-05 16:39  Hangocks\Form2.cs

     文件       2898  2020-11-05 16:35  Hangocks\Form2.Designer.cs

     文件       5814  2020-11-05 16:35  Hangocks\Form2.resx

     文件        997  2020-11-05 15:49  Hangocks\Form3.cs

     文件       6093  2020-11-05 15:09  Hangocks\Form3.Designer.cs

     文件       5814  2020-11-05 15:09  Hangocks\Form3.resx

     文件       4372  2020-11-05 14:49  Hangocks\Hangocks.csproj

     文件        168  2020-11-05 14:08  Hangocks\Hangocks.csproj.user

     文件       2905  2020-11-05 13:34  Hangocks\myHook.cs

     文件        937  2020-11-05 16:39  Hangocks\obj\Debug\Hangocks.csproj.FileListAbsolute.txt

     文件        963  2020-11-05 16:39  Hangocks\obj\Debug\Hangocks.csproj.GenerateResource.Cache

     文件      16384  2020-11-05 16:39  Hangocks\obj\Debug\Hangocks.exe

     文件        180  2020-11-05 16:39  Hangocks\obj\Debug\Hangocks.Form1.resources

     文件        180  2020-11-05 16:39  Hangocks\obj\Debug\Hangocks.Form2.resources

     文件        180  2020-11-05 16:39  Hangocks\obj\Debug\Hangocks.Form3.resources

     文件      38400  2020-11-05 16:39  Hangocks\obj\Debug\Hangocks.pdb

     文件        180  2020-11-05 16:39  Hangocks\obj\Debug\Hangocks.Properties.Resources.resources

     文件        957  2020-11-05 16:00  Hangocks\obj\Release\Hangocks.csproj.FileListAbsolute.txt

     文件        963  2020-11-05 16:02  Hangocks\obj\Release\Hangocks.csproj.GenerateResource.Cache

     文件      15360  2020-11-05 16:02  Hangocks\obj\Release\Hangocks.exe

............此处省略25个文件信息

评论

共有 条评论