-
WINFORM保存参数至本机注册表
实现在窗体关闭时将窗体中的参数保存变量至注册表,首先创建一个新的子路径,在子路径中创建变量,
如注册表中无此变量将自动创建,若下次有此变量时将更新变量。窗体再次载入时从注册表子路径读取
此变量信息,通过赋值给控件。
方法如下:
private void Form1_Load(object sender, EventArgs e) //窗体载入时
{
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.UserPaint, true);
SetStyle(ControlStyles.DoubleBuffer, true);
this.Refresh();
this.ShowInTaskbar = false;
this.PAN_1.Visible = false;
int Z_alpha,Z_red,Z_green,Z_blue; //声明4个Int类型颜色变量
//this.TransparencyKey = Color.Transparent;
RegistryKey myReg1, myReg2, myReg3;//声明注册表对象
myReg1 = Registry.CurrentUser;//获取当前用户注册表项
try
- 2022-03-19 08:35:30下载
- 积分:1
-
年、月份选择控件
年、月份选择控件-Year, month selector control
- 2022-08-10 20:40:56下载
- 积分:1
-
Qt编写时钟界面
用qt编写的简单的时钟界面,通过实现paintEvent函数来绘制
- 2022-08-25 16:59:37下载
- 积分:1
-
实现动画进度条的源码
实现动画进度条的源码-achieving progress of the animation FOSS
- 2022-02-25 13:02:47下载
- 积分:1
-
这个类可以读取和存储csv文件或文本文件的图..很简单
这个类可以很简单的读取和存储csv文件或者文本文件的数字数据。-this category can be very simple to read and storage csv files or text files figures.
- 2022-06-21 07:11:55下载
- 积分:1
-
数字进行逗号分隔
自动将输入数字进行逗号分隔,每三个数字用逗号隔开,如输入12345678,自动设置为12,345,678,方便使用者使用,并且该源码执行效率很高,可以快速分隔,开发者可以移植到其他平台进行处理
- 2023-06-13 21:50:04下载
- 积分:1
-
具体什么功能,详细的好好的看里面的代码,还不懂的话,在看代码...
具体什么功能,详细的好好的看里面的代码,还不懂的话,在看代码
-what specific function properly detailed inside look at the code, still do not know how, then look at code
- 2023-05-24 12:25:03下载
- 积分:1
-
完全模拟OICQ的界面的程序
完全模拟OICQ的界面的程序- Completely simulates OICQ the contact surface procedure
- 2022-01-26 05:13:40下载
- 积分:1
-
UserRight control, the control is to provide two main functions of safeguarding...
控件UserRight,本控件主要是提供两大功能维护系统的安全性,特别适合于管理多人使用系统的权限问题。-UserRight control, the control is to provide two main functions of safeguarding the security of the system is particularly suited to the use of system management over issues of authority.
- 2023-04-11 02:40:03下载
- 积分:1
-
This procedure has the main toolbar of the call, which has strong significance i...
本程序主要实现了工具栏的停靠,具有很强的实际应用意义。-This procedure has the main toolbar of the call, which has strong significance in practical applications.
- 2022-02-06 08:21:19下载
- 积分:1