-
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
-
procedures include the VC can reveal any size two BMP background map shows the p...
本VC程序包含,可以显示任何大小2副BMP图为背景的进度条显示CLASS,非常漂亮.-procedures include the VC can reveal any size two BMP background map shows the progress of CLASS, very beautiful.
- 2022-03-30 03:20:26下载
- 积分:1
-
仿“影音传送带”界面(发布者: sonystone)
仿“影音传送带”界面(发布者: sonystone)-fake "video conveyor belt" interface (Released : sonystone)
- 2022-03-06 22:51:45下载
- 积分:1
-
法国INSIDE公司的读卡模块M210的数据手册,包含相关的通讯指令。...
法国INSIDE公司的读卡模块M210的数据手册,包含相关的通讯指令。-France INSIDE" s reader module M210 data sheet, including related communications directives.
- 2023-02-15 22:05:03下载
- 积分:1
-
一个自绘按钮的实现例子
一个自绘按钮的实现例子-painted a button from the realization example
- 2022-08-02 23:57:07下载
- 积分:1
-
仿WIN7操作系统
资源描述
使用FLEX 技术,多年前搞的一个仿win7操作系统的界面,现在共享出来,大家一起hi,高手勿喷,小菜级别的东西,主要是使用了AMBI的库来实现的
MDI。。。。。
amdi.windowManager.addEventListener(MDIManagerEvent.APP_MENU_ITEM_CLICK,lisentApplicationMenu);
amdi.windowManager.addEventListener(MDIManagerEvent.WINDOW_CLOSE,confirmWindowClose);
amdi.windowManager.cascade();
amdi.menuButton.setStyle("rollOverEffect",glowOver);
amdi.menuButton.setStyle("rollOutEffect",glowOut);
更多东西自己去感受吧
- 2022-08-09 08:03:21下载
- 积分:1
-
如何使用tabstrip的完整例子,有完整的说明
如何使用tabstrip的完整例子,有完整的说明-How to use the TabStrip complete example, has a complete description of
- 2023-02-09 15:00:03下载
- 积分:1
-
测试串口的PC软件
应用背景这是完整源代码 ;测试一个简单的PC软件UART(RS232)。这个工具用C语言写的#。主要特点:•选择通讯端口-波特率•数据大小•位停止•发送接收数据—…关键技术UART:wiki源码一个 ;通用异步接收器/发送器UART,简称 ; ;一 ;计算机硬件 ;设备之间的数据并行转换 ; ;和 ;串行 ;形式。UART中常用的通信标准,如 连词;TIA ;(原 ;EIA RS-232,RS-422) ; ;或 ;RS-485。这一“通用”的设计表明,数据格式和传输速度是可配置的。电气信号水平和方法(如 ;差分信号 ;等)是由一个驱动电路UART外部处理。
- 2023-03-05 11:20:03下载
- 积分:1
-
graphics operations (this semester of operations, written by the poor)
图形学作业 (本学期的作业,写得很差经)-graphics operations (this semester of operations, written by the poor)
- 2022-01-25 18:07:02下载
- 积分:1
-
在DATAGRID 里增加CHECKBOX!
在DATAGRID 里增加CHECKBOX!-Increase in the DataGrid CHECKBOX!
- 2022-11-09 03:55:02下载
- 积分:1