-
有时候我们制作了很多个属性页,由于页数过多分成了几行,这是的用户难以分辨到底哪一个是被激活的.所以,我制作了这段代码,把激活的属性页的标题文字设为高亮....
有时候我们制作了很多个属性页,由于页数过多分成了几行,这是的用户难以分辨到底哪一个是被激活的.所以,我制作了这段代码,把激活的属性页的标题文字设为高亮.-Sometimes we produce a lot of attributes page, the page is divided into a few too many firms, it is difficult to distinguish the users which in the end was an activated. So, I produced this code, activation of the title page attribute set highlighted text.
- 2023-05-13 03:20:02下载
- 积分:1
-
Modbus数据(16进制格式)CRC计算
应用背景很多通信需要用到mobudbus rtu协议,数据都是以十六进制格式进行发送,并且数据的末尾要进行CRC计算。该程序就是当用户输入16进制格式的一系列数字指令后,对数据进行CRC计算。CRC采用查表的方式进行计算。关键技术关于怎样采用查表的形式进行CRC计算的算法,在Unicode编码下CString如何通过WideCharToMultipleByte转换为char*.如何将十进制数据转换为16进制字符串的格式。如何对编辑框中的按格式输入的字符串进行分割。怎样在PreTranslateMessage中对Esc按键进行屏蔽。
- 2022-11-10 12:25:04下载
- 积分:1
-
实现了一个多个切分窗口的界面,并且在该界面中实现了一个目录树,可显示本机的各级文件夹,各切分窗口可以随意切换。...
实现了一个多个切分窗口的界面,并且在该界面中实现了一个目录树,可显示本机的各级文件夹,各切分窗口可以随意切换。-Realize the segmentation of more than one window interface, and in the interface implements a directory tree can be displayed at all levels of the local folder, the segmentation can switch the window.
- 2022-12-13 07:15:02下载
- 积分:1
-
该程序能够实现一个钻石在屏幕上不断的旋转,非常好看,对于学习visual c++的同学来说是非常好的程序。...
该程序能够实现一个钻石在屏幕上不断的旋转,非常好看,对于学习visual c++的同学来说是非常好的程序。-The program can achieve an effect that a diamond go around and around ceaselessly at the screen, it is very beautiful! This is very usefull to the people studying Visual C++.
- 2022-07-16 08:53:48下载
- 积分:1
-
用dialog bar打开对话框的例子1
用dialog bar打开对话框的例子1-bar open dialog with the example of a dialog box
- 2023-01-11 16:25:04下载
- 积分:1
-
how to change the color of the control procedures as an example to ListBox
如何改变控件颜色 本程序以ListBox为例-how to change the color of the control procedures as an example to ListBox
- 2023-05-07 11:00:02下载
- 积分:1
-
简单的程序在鼠标/键盘输入锁定工作站
这是我做的一个简单的程序,用于在工作中实施安全策略。
- 2022-08-13 02:15:31下载
- 积分:1
-
new font selection controls, fonts used with the window painting again
新型的字体选择控件,把字体用跟随的窗口画了一遍-new font selection controls, fonts used with the window painting again
- 2022-03-26 05:04:03下载
- 积分:1
-
几个常用的控键程序 c版本
几个常用的控键程序 c版本-several commonly used keys control procedures c version
- 2022-09-30 00:40:03下载
- 积分:1
-
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