• 大小: 0.08M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 滚动  

资源简介

定时器实现示例

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace FollCaption
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            listBox1.Top = this.Height;
            this.Focus();
        }

        private void timer1_Tick(object sender EventArgs e)
        {
            if (listBox1.Top < -listBox1.Height)
            {
                listBox1.Top = this.Height;
            }
            listBox1.Top = listBox1.Top - 5;
            this.Focus();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-10 17:08  滚动字幕\
     目录           0  2018-04-10 16:24  滚动字幕\Backup\
     目录           0  2018-04-10 16:24  滚动字幕\Backup\FollCaption\
     文件        3733  2009-02-11 11:55  滚动字幕\Backup\FollCaption\FollCaption.csproj
     文件        5809  2009-02-11 13:02  滚动字幕\Backup\FollCaption\Form1.Designer.cs
     文件         798  2009-02-11 13:04  滚动字幕\Backup\FollCaption\Form1.cs
     文件        6008  2009-02-11 13:02  滚动字幕\Backup\FollCaption\Form1.resx
     文件         492  2009-02-11 11:48  滚动字幕\Backup\FollCaption\Program.cs
     目录           0  2018-04-10 16:24  滚动字幕\Backup\FollCaption\Properties\
     文件        1354  2009-02-11 11:48  滚动字幕\Backup\FollCaption\Properties\AssemblyInfo.cs
     文件        2872  2009-02-11 11:48  滚动字幕\Backup\FollCaption\Properties\Resources.Designer.cs
     文件        5612  2009-02-11 11:48  滚动字幕\Backup\FollCaption\Properties\Resources.resx
     文件        1096  2009-02-11 11:48  滚动字幕\Backup\FollCaption\Properties\Settings.Designer.cs
     文件         249  2009-02-11 11:48  滚动字幕\Backup\FollCaption\Properties\Settings.settings
     文件         923  2009-02-11 11:48  滚动字幕\Backup\FollCaption.sln
     文件       14336  2009-02-11 13:04  滚动字幕\Backup\FollCaption.suo
     目录           0  2018-04-10 16:24  滚动字幕\FollCaption\
     文件        4052  2014-05-18 10:45  滚动字幕\FollCaption\FollCaption.csproj
     文件        4218  2018-04-12 13:35  滚动字幕\FollCaption\Form1.Designer.cs
     文件         798  2018-04-12 13:35  滚动字幕\FollCaption\Form1.cs
     文件        6008  2018-04-12 13:35  滚动字幕\FollCaption\Form1.resx
     文件         492  2009-02-11 11:48  滚动字幕\FollCaption\Program.cs
     目录           0  2018-04-10 16:24  滚动字幕\FollCaption\Properties\
     文件        1354  2009-02-11 11:48  滚动字幕\FollCaption\Properties\AssemblyInfo.cs
     文件        2861  2014-05-18 10:45  滚动字幕\FollCaption\Properties\Resources.Designer.cs
     文件        5612  2009-02-11 11:48  滚动字幕\FollCaption\Properties\Resources.resx
     文件        1110  2014-05-18 10:45  滚动字幕\FollCaption\Properties\Settings.Designer.cs
     文件         249  2009-02-11 11:48  滚动字幕\FollCaption\Properties\Settings.settings
     目录           0  2018-04-10 16:24  滚动字幕\FollCaption\bin\
     目录           0  2018-04-10 17:08  滚动字幕\FollCaption\bin\Debug\
     文件        9728  2018-04-12 13:35  滚动字幕\FollCaption\bin\Debug\FollCaption.exe
............此处省略26个文件信息

评论

共有 条评论