• 大小: 926KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-19
  • 语言: C#
  • 标签: 从右到左  

资源简介

C#滚动字幕 如酷狗桌面透明屏幕字幕滚动 从右到左 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;
using System.Runtime.InteropServices;


namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            this.TransparencyKey = this.BackColor;//
            this.Width = Screen.PrimaryScreen.WorkingArea.Width-10;
            //Screen.PrimaryScreen.WorkingArea.Width;//屏幕宽度
            //Screen.PrimaryScreen.WorkingArea.Height;//屏幕高度
        }
       
        private void Form1_Load(object sender EventArgs e)
        {
            Screen screen = Screen.AllScreens[0];
            this.DesktopLocation = new Point(screen.Bounds.Width - (this.Width + 5) screen.Bounds.Height - (this.Height + 33));
            this.TopMost = true; 
            //label1.Text=“adfasdasdfaasdfasdf\r\naaa“;
            this.timer1.Start();
           
            
        }       

        private void Form1_Paint(object sender PaintEventArgs e)
        {
            //Graphics g = e.Graphics;
            //g.DrawLine(new Pen(Color.Red 2) new Point(10 30) new Point(Screen.PrimaryScreen.WorkingArea.Width 30));//这是画线的

        }

        private void timer1_Tick(object sender EventArgs e)
        {
            int FWidth = this.Width;
            int FHeight = this.Height;
            Point LPos = new Point(this.label1.Location.X this.label1.Location.Y);
            if (LPos.X >10)
            {
                this.label1.Location = new Point(LPos.X-10 LPos.Y );
                return;
            }
            else
            {
                this.label1.Location = new Point(FWidth-10 30);
            }

        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    3056128  2008-06-02 12:56  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\DevComponents.DotNetBar2.dll

     文件       9216  2010-03-28 14:25  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe

     文件      26112  2010-03-28 14:25  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb

     文件      14328  2010-03-28 14:26  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe

     文件        490  2007-07-21 01:33  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest

     文件       1904  2010-03-28 14:26  WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs

     文件       2882  2010-03-28 11:52  WindowsFormsApplication1\WindowsFormsApplication1\Form1.Designer.cs

     文件       6008  2010-03-28 11:52  WindowsFormsApplication1\WindowsFormsApplication1\Form1.resx

     文件       6347  2010-03-28 09:32  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\ResolveAssemblyReference.cache

     文件       1273  2010-03-28 14:26  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt

     文件        847  2010-03-28 11:52  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache

     文件       9216  2010-03-28 14:25  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.exe

     文件        180  2010-03-28 11:52  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.Form1.resources

     文件      26112  2010-03-28 14:25  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.pdb

     文件        180  2010-03-28 09:32  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.Properties.Resources.resources

     文件        505  2010-03-28 09:27  WindowsFormsApplication1\WindowsFormsApplication1\Program.cs

     文件       1386  2010-03-28 09:27  WindowsFormsApplication1\WindowsFormsApplication1\Properties\AssemblyInfo.cs

     文件       2898  2010-03-28 09:27  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.Designer.cs

     文件       5612  2010-03-28 09:27  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Resources.resx

     文件       1109  2010-03-28 09:27  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.Designer.cs

     文件        249  2010-03-28 09:27  WindowsFormsApplication1\WindowsFormsApplication1\Properties\Settings.settings

     文件       4109  2010-03-28 09:32  WindowsFormsApplication1\WindowsFormsApplication1\WindowsFormsApplication1.csproj

     文件        962  2010-03-28 09:27  WindowsFormsApplication1\WindowsFormsApplication1.sln

    ..A..H.     16384  2010-03-28 14:26  WindowsFormsApplication1\WindowsFormsApplication1.suo

     目录          0  2010-03-28 09:58  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\Refactor

     目录          0  2010-03-28 09:27  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug\TempPE

     目录          0  2010-03-28 09:32  WindowsFormsApplication1\WindowsFormsApplication1\bin\Debug

     目录          0  2010-03-28 14:25  WindowsFormsApplication1\WindowsFormsApplication1\obj\Debug

     目录          0  2010-03-28 09:27  WindowsFormsApplication1\WindowsFormsApplication1\bin

     目录          0  2010-03-28 09:27  WindowsFormsApplication1\WindowsFormsApplication1\obj

............此处省略6个文件信息

评论

共有 条评论

相关资源