新建一个Windows窗体应用程序
修改窗体属性
[BackColor]:Windows
[FormBorderStyle]:FixedDialog
[MaximizeBox]:false
[MinimizeBox]:false
[size]:500,300
[Text]:闪动的图片
添加控件:Timer,PictureBox,ImageList控件
设置Timer[Interval] 属性为500.
编写代码如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HelloSuperMap
{
public partial class Form1 : Form
{
private bool bInImg= false;
public Form1()
{
Initiali