C#滚动字幕,很简单的实例源码
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();
}
}
资源文件列表
╣÷╢»╫╓─╗/FollCaption.sln , 923
╣÷╢»╫╓─╗/FollCaption.suo , 14336
╣÷╢»╫╓─╗/FollCaption/bin/Debug/FollCaption.exe , 12288
╣÷╢»╫╓─╗/FollCaption/bin/Debug/FollCaption.pdb , 24064
╣÷╢»╫╓─╗/FollCaption/bin/Debug/FollCaption.vshost.exe , 14328
╣÷╢»╫╓─╗/FollCaption/bin/Debug/FollCaption.vshost.exe.manifest , 490
╣÷╢»╫╓─╗/FollCaption/FollCaption.csproj , 3733
╣÷╢»╫╓─╗/FollCaption/Form1.cs , 798
╣÷╢»╫╓─╗/FollCaption/Form1.Designer.cs , 5809
╣÷╢»╫╓─╗/FollCaption/Form1.resx , 6008
╣÷╢»╫╓─╗/FollCaption/obj/Debug/FollCaption.csproj.FileListAbsolute.txt , 984
╣÷╢»╫╓─╗/FollCaption/obj/Debug/FollCaption.csproj.GenerateResource.Cache , 847
╣÷╢»╫╓─╗/FollCaption/obj/Debug/FollCaption.exe , 12288
╣÷╢»╫╓─╗/FollCaption/obj/Debug/FollCaption.Form1.resources , 180
╣÷╢»╫╓─╗/FollCaption/obj/Debug/FollCaption.pdb , 24064
╣÷╢»╫╓─╗/FollCaption/obj/Debug/FollCaption.Properties.Resources.resources , 180
╣÷╢»╫╓─╗/FollCaption/Program.cs , 492
╣÷╢»╫╓─╗/FollCaption/Properties/AssemblyInfo.cs , 1354
╣÷╢»╫╓─╗/FollCaption/Properties/Resources.Designer.cs , 2872
╣÷╢»╫╓─╗/FollCaption/Properties/Resources.resx , 5612
╣÷╢»╫╓─╗/FollCaption/Properties/Settings.Designer.cs , 1096
╣÷╢»╫╓─╗/FollCaption/Properties/Settings.settings , 249
