-
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
-
此代码是《Visual C++6.0程序设计从入门到精通》的原代码光盘。...
此代码是《Visual C++6.0程序设计从入门到精通》的原代码光盘。-This code is
- 2022-03-23 17:47:52下载
- 积分:1
-
多种排序方法效率比较
资源描述程序中给出了各种经常使用的排序方法的源代码,并将代码存放在各自的函数中可以随时调用。通过生成随机数的方法,生成设置数量的随机数,通过比较各种方法排序所用的时间对其效率进行比较。最后做成了C++ MFC界面,方便使用。
- 2023-02-02 14:10:04下载
- 积分:1
-
利用栈实现表达式的运算,有兴趣的朋友可以看一下
利用栈实现表达式的运算,有兴趣的朋友可以看一下-The use of the computing stack to achieve expression, the friends who are interested can look at
- 2023-02-06 13:40:04下载
- 积分:1
-
extjs4 初学教程
Extjs4.0 学习指南
- 2022-12-04 23:00:03下载
- 积分:1
-
one fake outlook interface procedures, and includes the interface of the system,...
一款仿outlook的界面程序,并且包含了系统界面的部分,值得好好研究。-one fake outlook interface procedures, and includes the interface of the system, worthy of a thorough study.
- 2022-01-25 19:59:55下载
- 积分:1
-
本代码提供了一个各种图象的滑块
本代码提供了一个各种图象的滑块-the code for a variety of images slider
- 2023-05-30 16:15:03下载
- 积分:1
-
socket模拟聊天室
有客户端和服务器端 模拟网络聊天室的功能 有界面,当有人进入聊天室时,会在界面上显示信息,使用套接字来建立客户端和服务器端,由服务器端进行监听每一个客户端。界面有进行美化。
- 2022-05-25 13:18:31下载
- 积分:1
-
VB实现XP风格的菜单(酷)大家可以尝试下
VB实现XP风格的菜单(酷)大家可以尝试下-VB XP-style menu (Cool) where we can try to
- 2022-09-07 03:50:03下载
- 积分:1
-
Working with databases, tableadapters
Working with databases, tableadapters
- 2022-03-22 04:45:43下载
- 积分:1