-
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
-
基于bootstrap后台管理系统模板
资源描述基于bootstrap后台管理系统模板startbootstrap-sb-admin 界面节约 控件灵活 自己下载后做了一些修改
- 2023-01-05 10:55:04下载
- 积分:1
-
digital image processing, a source book, the scientific publishing house.
delphi数字图像处理一书源代码,科学出版社出版.-digital image processing, a source book, the scientific publishing house.
- 2022-03-23 14:00:07下载
- 积分:1
-
类似于工控里面的开关按纽,可用于工控组态
类似于工控里面的开关按纽,可用于工控组态-similar to the Control button inside the switch can be used to control configuration
- 2022-08-25 08:10:51下载
- 积分:1
-
源码
源码-source.
- 2022-02-04 12:46:22下载
- 积分:1
-
张学工的csvm,分类方法简单,用途广泛。
张学工的csvm,分类方法简单,用途广泛。-Zhang workers csvm, classification method is simple, a wide range of uses.
- 2023-04-29 05:25:03下载
- 积分:1
-
每个选项含多行文字的列表框
每个选项含多行文字的列表框-the listbox which have multiple text lines in each item
- 2022-01-26 05:19:16下载
- 积分:1
-
Qt学生管理系统
工具:Qt4 C++ Sql
实现功能:具有创建数据库文件(.db文件)、保存记录、遍历、删除、查询、修改功能
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-16 16:58:30下载
- 积分:1
-
emwin
主要是emwin的源码,版本是5.18,欢迎喜欢研究单片机的朋友来下载,我这边主要用来显示一块小屏的效果,欢迎大家交流经验,互相学习
- 2022-08-24 06:17:58下载
- 积分:1
-
钟表的程序,可以改变颜色,有兴趣的朋友可以看看。
钟表的程序,可以改变颜色,有兴趣的朋友可以看看。-Watches the process, can change the color of friends who are interested can look at.
- 2022-04-29 05:22:58下载
- 积分:1