-
C# timer应用范例:左右飘动的窗体
C# 创建一个飘动的窗体,左右飘动,主要是对Timer的控制,基本的原理是:窗体的左上角横坐标随着timer1不断加一,窗体的左上角横坐标随着timer2不断减一,这个过程由Timer控制,因此你要写出一个循环,来控制Timer不停变化,比如timer不断加一:
Point p = new Point(this.DesktopLocation.X + 1, this.DesktopLocation.Y);
this.DesktopLocation = p;
if (p.X == 630)
{
timer1.Enabled = false;
timer2.Enabled = true;
}
以上代码的执行我们放入到private void timer1_Tick私有函数中,运行程序后即运行该函数。
- 2023-03-26 23:00:04下载
- 积分:1
-
alns_framework-master
自适应大邻域搜索算法中,利用了ALNS的lib库求解了一个TSP问题(In the adaptive large neighborhood search algorithm, the Lib Library of ALNS is used to solve a TSP problem.)
- 2019-07-09 18:57:47下载
- 积分:1
-
U
说明: 需要net3.0以上的平台运行,根据参数设置,可以在后台自动抓取指定驱动器中的指定类型的文件袋指定的保存目录。(Net3.0 above the platform needed to run, according to parameter settings can be specified in the background automatically crawl the specified drive type of file to save the specified directory pocket.)
- 2010-02-23 14:16:48下载
- 积分:1
-
陷波滤波matlab
本资源为matlab的陷波滤波程序
- 2022-07-24 22:02:46下载
- 积分:1
-
人工势场法(3维alpha)
说明: 人工势场三维仿真图,程序可以运行。。。。。。。。(Artificial potential field three-dimensional simulation diagram , the program can run.)
- 2021-02-21 22:49:41下载
- 积分:1
-
msp430_ds1302.C
430的DS1302的驱动,知识源于网络,(430 of the DS1302-driven, knowledge from the network,)
- 2006-12-08 09:06:06下载
- 积分:1
-
104规约
104规约源码
- 2022-10-15 00:40:03下载
- 积分:1
-
DES-PIC-CBC
DES加密方法加密BMP图像,CBC方式实现。(DES encryption methods encryption BMP image, CBC way.)
- 2020-10-09 20:47:34下载
- 积分:1
-
Kruskal
Kruskal in Data structure
- 2013-10-02 21:20:46下载
- 积分:1
-
Image01.0
Manejo de Imagenes usando haarcascade en QT+opencv
- 2014-02-25 01:32:17下载
- 积分:1