-
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
-
制作一个图片查看的小程序,无缝连接各需要查看的图片,并做成控件的形式
制作一个图片查看的小程序,无缝连接各需要查看的图片,并做成控件的形式-To produce a picture to see a small procedures, seamlessly connecting all need to see the picture, and made the form of control
- 2022-02-25 16:12:47下载
- 积分:1
-
VB实现透明窗口效果! 其中用到了几个API函数!效果很不错,值得学习一下!...
VB实现透明窗口效果! 其中用到了几个API函数!效果很不错,值得学习一下!-Transparent window to achieve the effect of VB! Which used a number of API function! The effect is pretty good, it is worth learning about!
- 2022-04-15 19:38:38下载
- 积分:1
-
旋转无线传感器网络,在 NS2 语言上实现的协议
旋转无线传感器网络,在 NS2 语言上实现的协议。源代码是清晰、 容易理解为初学者在 NS2 上工作
- 2023-04-23 02:40:03下载
- 积分:1
-
several commonly used keys control procedures c version
几个常用的控键程序 c版本-several commonly used keys control procedures c version
- 2022-01-27 13:14:52下载
- 积分:1
-
简单的绘图小程序-动态画直线
资源描述与Windows的画图工具一样,在利用鼠标画一条直线时,按住鼠标并拖曳,动态的画出当前直线,当释放后才真正画出一条需要的直线,并实现了窗口重绘功能
- 2022-08-08 14:41:08下载
- 积分:1
-
RFID读卡芯片程序
RFID射频识别是一种非接触式的自动识别技术,它通过射频信号自动识别目标对象并获取相关数据,识别工作无须人工干预,可工作于各种恶劣环境。RFID技术可识别高速运动物体并可同时识别多个标签,操作快捷方便。所以在驾校的练车系统上面应用很广泛,这种界面可以直观的读取自己消费的信息,以及后台人员方面对卡片的信息的采集工作。
- 2022-12-31 15:50:28下载
- 积分:1
-
This book is designed to give you a working knowledge of Windows Presentation
F...
这本书主要讲解WPF的基础知识,适合正在使用.NET技术设计UI的开发者(WINFROM MFC HTML)。-This book is designed to give you a working knowledge of Windows Presentation
Foundation (WPF). The assumption is that the reader is already a .NET developer with
some familiarity with other UI technologies (WinForms, MFC, HTML) but is new to
WPF. In particular, the book focuses on using WPF with Visual Studio 2008, which we
believe is the primary tool that most WPF developers will use, although we still spend
some time talking about other available tools.
- 2022-07-21 03:40:03下载
- 积分:1
-
A beautiful painting from the menu, prepared by vc program very useful.
一种漂亮的自绘菜单,编写vc程序很有用的.-A beautiful painting from the menu, prepared by vc program very useful.
- 2022-06-28 02:13:10下载
- 积分:1
-
采用shell方法实现文件显示的列表,支持在位编辑
采用shell方法实现文件显示的列表,支持在位编辑-method using shell list of the documents that support the incumbent editor
- 2022-01-26 00:02:30下载
- 积分:1