-
C# 在程序中使用指针、十字光标、浮动窗口等不安全代码
C# 在程序中使用指针、十字光标、浮动窗口等不安全代码的实例,单击以下按钮会演示出对应功能:
在程序中显示一个浮动帮助窗口
显示等待光标
显示十字光标
对于功能实现,逐一分享源代码如下:在程序中使用指针等不安全代码:
var MyFileName = "C:atlog.txt";
var MyReader = new MyReaderClass(MyFileName);
const int MyBuffSize = 128;
byte[] MyBuffer = new byte[MyBuffSize];
ASCIIEncoding MyEncoder = new ASCIIEncoding();
var MyInfo = MyFileName + "的内容如下:";
while (MyReader.Read(MyBuffer, 0, MyBuffSize) != 0)
MyInfo += "
" + MyEncoder.GetString(MyBuffer);
MessageBox.Show(MyInfo, "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
private void button2_Click(object sender, EventArgs e)
{//在程序中显示一个浮动帮助窗口
Help.ShowPopup(this, "提高程序开发效率、拓展软件应用领域", new Point(300, 350));
}
private void button3_Click(object sender, EventArgs e)
{//显示等待光标
this.Cursor = Cursors.WaitCursor;
}
private void button4_Click(object sender, EventArgs e)
{//显示十字光标
this.Cursor = Cursors.Cross;
}
- 2023-05-20 08:40:02下载
- 积分:1
-
Delphi 的RTTI机制的所有技术文档(相当齐全)
Delphi 的RTTI机制的所有技术文档(相当齐全)-Delphi" s RTTI mechanism for all the technical documentation (fairly comprehensive)
- 2023-06-17 21:45:04下载
- 积分:1
-
STM8S207_Game_IO_V10_2015
STM8S207_Game_IO_V10_2015
- 2022-03-17 17:23:15下载
- 积分:1
-
PIDcontrol
基于视觉的智能车模糊PID控制算法 ,对摄像头数据处理方面很有用(Fuzzy PID control algorithm, based on the vision of the smart car useful data processing aspects of the camera)
- 2012-08-28 18:17:34下载
- 积分:1
-
rtems6
Linux下物理内存管理技术探讨(Linux under the physical memory management technology to explore)
- 2007-11-14 17:06:21下载
- 积分:1
-
模型绘制
说明: 读取obj的内容数据
利用opengl绘制出 obj格式的三维模型(Read and draw the three-dimensional model of obj format)
- 2020-06-23 12:00:02下载
- 积分:1
-
c++与SQL Server的宾馆酒店管理系统
比较完整的系统管理,希望大家喜欢,一起提高
- 2022-03-03 21:02:41下载
- 积分:1
-
自动调光LD075IC105W76AD3001
pwm0到10v调光,N76003的相关资料ADC多通道采集,PWM自动调光(Pwm0 to 10v dimming, multi-channel ADC acquisition of N76003 related data, PWM automatic dimming)
- 2020-06-19 03:20:01下载
- 积分:1
-
PICC18编程快速入门-源码
说明: 1. Test1文件夹内的例子为《第2章 PICC18编程快速入门》中的例程。
2. Chart-04、Chart-05、……、Chart-16分别是第4章、第5章、……、第16章中的例程,每章节下的文件夹分别标明是该章的例程号,如Chart-04文件夹下的Exam-4-1文件夹内的程序是第4章的第1个例程,其余以此类推。
3. Chart-12文件夹下的Exam-12-2-main表示12章例2中的主机程序,Exam-12-2-Slave表示12章例2的从机程序。Chart-16文件夹下的pic18-PSP文件夹下PSP-Master内的程序是第16章中PSP例程的主机程序,PSP-slave是第16章中PSP例程的从机程序。(1. Examples in the Test1 folder are the routines in Chapter 2 PICC18 Programming Quick Start.
2. Chart-04, Chart-05,... Chart-16 is Chapter 4, Chapter 5,... Chapter 16 of the routine, the folders under each chapter are marked as the routine number of the chapter, such as Chart-04 folder under Exam-4-1 folder procedures are the first routine of Chapter 4, the rest of the same.
3. Exam-12-2-main under the Chart-12 folder represents the host program in Chapter 12, Example-12-2-Slave represents the slave program in Chapter 12, Example-2. The program in PSP-Master under pic18-PSP folder under Chart-16 folder is the host program of PSP routine in Chapter 16, and PSP-slave is the slave program of PSP routine in Chapter 16.)
- 2020-06-19 14:14:38下载
- 积分:1
-
很经典的树的操作,很好的学习代码,我的珍藏。。。绝对有用...
很经典的树的操作,很好的学习代码,我的珍藏。。。绝对有用-Very classic tree operation, good learning code, my treasure. . . Definitely useful
- 2022-03-24 14:28:14下载
- 积分:1