-
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
-
演示不同颜色环并实现动态效果
演示不同颜色环并实现动态效果-demonstrate different color rings and achieve dynamic effects
- 2022-10-03 11:45:03下载
- 积分:1
-
WTL81_9127
供WTL爱好者学习WTL 是 Windows Template Library 的缩写,由微软的ATL(Active Template Library) 小组开发,主要是基于 ATL 对Win32API 的封装。从 2.0 后,功能逐步完善,成为了一个完整的支持窗口的框架(windows framework)。
- 2022-05-19 18:30:21下载
- 积分:1
-
好看的按钮
应用背景
火箭 带你飞 下载 点击下载
- 2022-05-19 19:35:15下载
- 积分:1
-
The personnel management system
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-08-09 18:57:06下载
- 积分:1
-
这是用Vc开发的一个简单的抓图例子,适合初学者使用。
这是用Vc开发的一个简单的抓图例子,适合初学者使用。-Vc This is a development of the screen in a simple example for beginners.
- 2022-02-04 15:32:59下载
- 积分:1
-
WIN98/2000自动修改IP程序
"AUTOIP 3.5"使用方法
WIN98/2000自动修改IP程序
"AUTOIP 3.5"使用方法
-WIN98/2000 IP automatically modified procedures "AUTOIP 3.5" use
- 2023-02-25 23:05:04下载
- 积分:1
-
温度显示上位机源码
先用单片机采集到ds1820的数据,然后通过通信传给VB上位机。VB制作度传感器上位机,通过DS18B20温度传感器采集温度,可以实时的显示当前温度。
- 2023-02-26 13:40:03下载
- 积分:1
-
通过继承下拉框JComboBox来满足应用程序的特定需要,并在此基础上实现其他一些功能...
通过继承下拉框JComboBox来满足应用程序的特定需要,并在此基础上实现其他一些功能-through inheritance drop-down box JComboBox applications to meet the specific needs and, in this on the basis of other features
- 2022-08-16 09:10:03下载
- 积分:1
-
listctrl控件,用回调函数进行排序
listctrl控件,用回调函数进行排序-listctrl controls, using a callback function Ranking
- 2023-05-31 01:40:03下载
- 积分:1