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

资源简介

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  2013-01-10 11:20  滚动字幕\
     目录           0  2013-01-10 11:20  滚动字幕\FollCaption\
     文件         923  2009-02-11 11:48  滚动字幕\FollCaption.sln
     文件       14336  2009-02-11 13:04  滚动字幕\FollCaption.suo
     目录           0  2013-01-10 11:20  滚动字幕\FollCaption\bin\
     目录           0  2013-01-10 11:20  滚动字幕\FollCaption\bin\Debug\
     文件       12288  2009-02-11 13:04  滚动字幕\FollCaption\bin\Debug\FollCaption.exe
     文件       24064  2009-02-11 13:04  滚动字幕\FollCaption\bin\Debug\FollCaption.pdb
     文件       14328  2009-02-11 13:04  滚动字幕\FollCaption\bin\Debug\FollCaption.vshost.exe
     文件         490  2007-07-21 01:33  滚动字幕\FollCaption\bin\Debug\FollCaption.vshost.exe.manifest
     文件        3733  2009-02-11 11:55  滚动字幕\FollCaption\FollCaption.csproj
     文件         798  2009-02-11 13:04  滚动字幕\FollCaption\Form1.cs
     文件        5809  2009-02-11 13:02  滚动字幕\FollCaption\Form1.Designer.cs
     文件        6008  2009-02-11 13:02  滚动字幕\FollCaption\Form1.resx
     目录           0  2013-01-10 11:20  滚动字幕\FollCaption\obj\
     目录           0  2013-01-10 11:20  滚动字幕\FollCaption\obj\Debug\
     文件         984  2009-02-11 13:04  滚动字幕\FollCaption\obj\Debug\FollCaption.csproj.FileListAbsolute.txt
     文件         847  2009-02-11 13:02  滚动字幕\FollCaption\obj\Debug\FollCaption.csproj.GenerateResource.Cache
     文件       12288  2009-02-11 13:04  滚动字幕\FollCaption\obj\Debug\FollCaption.exe
     文件         180  2009-02-11 13:02  滚动字幕\FollCaption\obj\Debug\FollCaption.Form1.resources
     文件       24064  2009-02-11 13:04  滚动字幕\FollCaption\obj\Debug\FollCaption.pdb
     文件         180  2009-02-11 13:02  滚动字幕\FollCaption\obj\Debug\FollCaption.Properties.Resources.resources
     目录           0  2012-05-02 09:50  滚动字幕\FollCaption\obj\Debug\TempPE\
     文件         492  2009-02-11 11:48  滚动字幕\FollCaption\Program.cs
     目录           0  2013-01-10 11:20  滚动字幕\FollCaption\Properties\
     文件        1354  2009-02-11 11:48  滚动字幕\FollCaption\Properties\AssemblyInfo.cs
     文件        2872  2009-02-11 11:48  滚动字幕\FollCaption\Properties\Resources.Designer.cs
     文件        5612  2009-02-11 11:48  滚动字幕\FollCaption\Properties\Resources.resx
     文件        1096  2009-02-11 11:48  滚动字幕\FollCaption\Properties\Settings.Designer.cs
     文件         249  2009-02-11 11:48  滚动字幕\FollCaption\Properties\Settings.settings

评论

共有 条评论