-
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
-
这是一个用vc编写的很漂亮的编辑框程序,不需要解压密码
这是一个用vc编写的很漂亮的编辑框程序,不需要解压密码 -vc prepared with a very nice frame editing procedures, not extracting passwords
- 2022-08-03 00:35:22下载
- 积分:1
-
图书馆管理系统,有完整的图书借阅及管理功能
图书馆管理系统,有完整的图书借阅及管理功能-Library Management System, a comprehensive lending library and management functions
- 2022-04-07 23:45:12下载
- 积分:1
-
做一个风险投资管理系统,大家可以看看自己有用的一切
一个用VC++做的学生管理系统,大家自己看看吧也许对大家有用-do a VC student management system, we may see for yourself it useful for all
- 2022-07-25 05:47:03下载
- 积分:1
-
该程序可以实时显示外部接受的数据,相比mschart控件制作的实时曲线效果较佳,没有闪烁问题。显示的背景,坐标值,以及曲线的颜色等都可以更改,非常棒...
该程序可以实时显示外部接受的数据,相比mschart控件制作的实时曲线效果较佳,没有闪烁问题。显示的背景,坐标值,以及曲线的颜色等都可以更改,非常棒-The program can accept an external real-time display of data, compared to controls mschart produced better results in real-time curve, there is no flicker problem. Shown in the background, coordinates, and the curve so you can change the color, great
- 2022-03-04 03:27:49下载
- 积分:1
-
consolelinedit.cpp,编写光标移动
consolelinedit用来编写光标移动的,c++ code,提供大家参考
- 2022-04-15 20:33:22下载
- 积分:1
-
控制网络的使用,能够加上地址、查找、删除等
ip控件的使用, 能实现ip地址的添加,查找,删除-ip control the use, able to add ip address, search, delete, etc.
- 2023-05-21 21:40:03下载
- 积分:1
-
利用Delphi实现的矿灯管理系统
用Delphi7+SQL Server写的一个矿灯管理系统,能够通过检测充电板的状态反应矿工的上井和下井,系统可以同时管理超过5000人的矿,经过多个煤矿的实际使用,效果良好,不过本系统需要相关的配套硬件才能正常工作,对项目感兴趣的朋友可以通过电子邮件联系我。 &
- 2023-03-29 13:45:03下载
- 积分:1
-
VC++几个常用的类,有串口类,超链接类,图钉类等,都很好用!...
VC++几个常用的类,有串口类,超链接类,图钉类等,都很好用!-VC++ of several commonly used classes, there are serial type, hyperlink type, pushpin type and so on, are very easy to use!
- 2022-02-02 00:06:18下载
- 积分:1
-
很不错的文档界面
很不错的文档界面-very good document interface
- 2022-03-06 16:21:20下载
- 积分:1