
编程
Xbodw
抖音/B站/西瓜 UP
科技区,爱好编程
展开
-
使用汇编生成MBR并使用C#修改
使用汇编生成MBR内容,再使用Csharp修改!原创 2024-01-27 20:37:20 · 1133 阅读 · 0 评论 -
批处理(cmd)如何制作死机病毒?
在网上看到许多人做的死机病毒都很拉,只是一次性的,而且不一定会死机,我们分享的方法针对所有机型~原创 2022-10-21 18:39:30 · 2393 阅读 · 1 评论 -
C#实现数据库登录与注册程序
最近看见好多人都在写这个,但他们用的都是用户名登录,如果用户名太长,那就太麻烦了。第一步:按照网上的教程建表。并在表中手动输入一条数据。第二步:在Form1.cs(登录界面)写入代码如下:...原创 2021-11-03 08:02:37 · 2431 阅读 · 0 评论 -
C#自定义方法
大家都知道C#中可以调用的方法,可在Class中自定义方法.public static SetControlText(Control control,string Str){control.Text = Str;}比如:然后在Form1中调用该方法.Class1 Class = new Class1();Class.SetControlText(label1,"欢迎使用");程序运行结果为:欢迎使用....原创 2021-07-05 20:13:23 · 969 阅读 · 0 评论 -
C#实现在各窗体中传输数据
一个类,2个Form。类的主要代码如下:#region 公共变量public static string PublicData = “暂无数据”;Form1代码如下:Class1 cs1 = new Class1();this.Text = cs1.PublicData;cs1.PublicData = this.Name;Form2 F2 = new Form2();F2.Show();Form2代码如下:Class1 cs1 = new Class1();t原创 2021-06-30 18:46:27 · 198 阅读 · 0 评论 -
C#实现进度条递增,到了一定值后停止加载,并隐藏进度条,显示按钮
代码很简单,走起!需要一个进度条,计时器,一个文本标签控件还有一个按钮代码如下(C # Programming Language)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;usi原创 2021-06-26 20:08:30 · 610 阅读 · 0 评论 -
C#获取系统版本(ps:不是版本号)
虽然Environment.OSVersion可以获取版本号,但不能获取版本。其实这很简单,两条就能解决。这条代码是://添加Microsoft.Win32;命名空间string tLong = (string)Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "ProductName", 0); label1 .Text = "产品版本(操作系原创 2021-06-05 14:41:21 · 1011 阅读 · 0 评论 -
2021-06-06
今天又有一个新项目:实现软件激活功能并且附带拷贝功能。话不多说,直接上代码.Form1:激活与判断模块: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 Syste原创 2021-06-05 14:21:52 · 238 阅读 · 0 评论 -
2021-06-05
大家好!这是我的第一篇博客。C#实现激活Windows10,时期一到只需打开单击激活按钮即可。程序大小:119KB。实现代码: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;原创 2021-06-05 14:01:37 · 210 阅读 · 1 评论