-
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
-
nurbs vs2010
3.01使用NURBS,VS2010编译。里面有一个测试项目,和test.exe testwin.exe。代码适合初学者。libnurbs NURBS是一个好的图书馆,使用Linux
- 2022-07-24 19:44:39下载
- 积分:1
-
一个很好的VC程序,大家用用就知道,我也不知道怎么说
一个很好的VC程序,大家用用就知道,我也不知道怎么说-a good VC procedures, we know it will be used, I do not know how that
- 2023-05-14 17:15:03下载
- 积分:1
-
Mfc Picture Thumbnail
这是一个基于cximage和mfc的clistctrl的缩略图实现。
- 2022-04-18 20:21:13下载
- 积分:1
-
Vc++ to achieve by the small example of the desktop clock, suitable for beginner...
用Vc++实现的桌面时钟的小例子,适合初学vc++的人参考学习。-Vc++ to achieve by the small example of the desktop clock, suitable for beginner of vc++ reference study.
- 2022-04-22 18:36:20下载
- 积分:1
-
这是一个液晶显示器的源程序,对其有兴趣的同同可以看看。...
这是一个液晶显示器的源程序,对其有兴趣的同同可以看看。-This is a source of LCD their interest with the same look.
- 2022-03-16 13:13:25下载
- 积分:1
-
Codejock XTreme Toolkit Pro 8.60
非常非常有名的界面库了,8.60版的全部内容
安装之后包括源代码等。
XTreme...
Codejock XTreme Toolkit Pro 8.60
非常非常有名的界面库了,8.60版的全部内容
安装之后包括源代码等。
XTreme Toolkit Pro 是非常专业和最好的界面库之一。-Codejock XTreme Toolkit Pro 8.60 is very, very well-known industry the surface, 8.60 version of the entire contents after installation including source code, and so on. XTreme Toolkit Pro is a very professional and the best one of the interface library.
- 2022-01-26 08:32:16下载
- 积分:1
-
这是一个扫雷程序,非常不错,和windows自带的差不多哦
这是一个扫雷程序,非常不错,和windows自带的差不多哦-program of bopping,very good.same to the game in windows
- 2022-05-23 00:06:50下载
- 积分:1
-
以前的空间clistrl
对以前Clistrl空时还有滚动条进行修正-Clistrl of previous space-time there are amendments to scroll bar
- 2023-03-13 19:35:04下载
- 积分:1
-
三维图形中的立体匹配深度估计
Stereo Matching for depth estimation in 3D graphics
- 2022-03-14 04:40:19下载
- 积分:1