-
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
-
基于SDL的马里奥游戏
资源描述该程序是基于SDL和C变异的马里奥小游戏,适合于SDL的初学者进行学习,代码较为复杂,但是能够很好的学习和应用SDL,了解SDL。
- 2023-03-05 12:45:03下载
- 积分:1
-
虚拟按键拨号程序
通过matlab实现上位机虚拟按键的界面设计,通过串口向下位机发送按键指令,当下位机51单片机接收到按键指令时,控制蜂鸣器发声;同时界面上显示被按的按键值。
- 2022-02-22 12:47:35下载
- 积分:1
-
带文字的进度条 带文字的进度条
带文字的进度条 带文字的进度条-Progress bar with text progress bar with text
- 2022-03-13 04:54:36下载
- 积分:1
-
Haha, this is a superior procedure. Ah Come see we have the need for it, you cha...
哈哈,这是一个超强的程序.大家快来看啊,有需要该的地方,大家-Haha, this is a superior procedure. Ah Come see we have the need for it, you change it
- 2023-01-22 11:45:03下载
- 积分:1
-
interface development and English, can also achieve XP
界面开发,英文版的,也可以实现XP风格的界面-interface development and English, can also achieve XP-style interface
- 2023-08-21 02:50:04下载
- 积分:1
-
基于labview的计算器
资源描述界面清新,适用于简单计算,类似于中学使用的计算器,分享给大家,一起学习
- 2023-07-07 15:25:03下载
- 积分:1
-
tool tips, the coolest tool tip category, super personality, a very good
工具提示,最酷的工具提示类,超个性化,界面非常好看,并且支持半透明、图片、图标、网址、表格以及其他特殊功能-tool tips, the coolest tool tip category, super personality, a very good-looking interface, and supports semitransparent, pictures, icons, website, forms and other special functions
- 2022-01-25 16:20:23下载
- 积分:1
-
反弹在 CPP 的游戏
项目或基于 CPP 编程 Language.Here 的小应用程序是很容易理解的 CPP 语言的用户。此项目包含登录,戏剧等模块。查看分数。退出。
- 2022-12-24 06:05:04下载
- 积分:1
-
a good function, you can use him to prepare a very nice windows interface
一个很好的函数,你可以利用他编写很漂亮的windows界面-a good function, you can use him to prepare a very nice windows interface
- 2022-02-04 09:12:26下载
- 积分:1