• 大小: 0.12M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-27
  • 语言: C#
  • 标签: 播放器  

资源简介

里面有定时器的基本用法

资源截图

代码片段和文件信息

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

namespace SongPlayShroudAegis
{
    public partial class Frm_Main : Form
    {
        int width = 0 heigh = 0;
        string strpath;
        public Frm_Main()
        {
            InitializeComponent();
            strpath = Application.StartupPath + “\\music“;
        }

        private void Frm_Main_Load(object sender EventArgs e)
        {
            this.timer1.Enabled = true;
            width = this.Width;
            heigh = this.Height;
          
        }

        private void Form1_Click(object sender EventArgs e)
        {
            ExitWindows();
        }

        private void timer1_Tick(object sender EventArgs e)
        {
            try
            {
                drowInfo();  //绘制屏保信息
                this.timer1.Interval = new Random().Next(800

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-02-24 10:52  SongPlayShroudAegis\
     目录           0  2011-12-22 23:04  SongPlayShroudAegis\SongPlayShroudAegis\
     文件         947  2009-02-23 21:37  SongPlayShroudAegis\SongPlayShroudAegis.sln
     文件       27136  2010-11-04 19:13  SongPlayShroudAegis\SongPlayShroudAegis.suo
     文件       27136  2010-11-04 19:13  SongPlayShroudAegis\SongPlayShroudAegis.v11.suo
     目录           0  2011-12-22 23:04  SongPlayShroudAegis\SongPlayShroudAegis\bin\
     目录           0  2011-12-22 23:13  SongPlayShroudAegis\SongPlayShroudAegis\bin\Debug\
     目录           0  2011-12-22 23:04  SongPlayShroudAegis\SongPlayShroudAegis\bin\Debug\music\
     文件       34470  2007-07-11 19:25  SongPlayShroudAegis\SongPlayShroudAegis\bin\Debug\music\1.mp3
     文件       34470  2007-07-11 19:25  SongPlayShroudAegis\SongPlayShroudAegis\bin\Debug\music\2.mp3
     文件       34470  2007-07-11 19:25  SongPlayShroudAegis\SongPlayShroudAegis\bin\Debug\music\3.mp3
     文件        2711  2010-07-12 22:17  SongPlayShroudAegis\SongPlayShroudAegis\Frm_Main.cs
     文件        3369  2010-07-09 19:28  SongPlayShroudAegis\SongPlayShroudAegis\Frm_Main.designer.cs
     文件        6704  2010-07-09 19:28  SongPlayShroudAegis\SongPlayShroudAegis\Frm_Main.resx
     目录           0  2011-12-22 23:04  SongPlayShroudAegis\SongPlayShroudAegis\obj\
     目录           0  2011-12-22 23:14  SongPlayShroudAegis\SongPlayShroudAegis\obj\Debug\
     目录           0  2011-12-22 23:04  SongPlayShroudAegis\SongPlayShroudAegis\obj\Debug\Refactor\
     文件        2771  2010-07-09 19:28  SongPlayShroudAegis\SongPlayShroudAegis\obj\Debug\SongPlayShroudAegis.csproj.FileListAbsolute.txt
     目录           0  2011-12-22 23:04  SongPlayShroudAegis\SongPlayShroudAegis\obj\Debug\TempPE\
     文件         503  2010-07-09 19:28  SongPlayShroudAegis\SongPlayShroudAegis\Program.cs
     目录           0  2011-12-22 23:04  SongPlayShroudAegis\SongPlayShroudAegis\Properties\
     文件        1370  2009-02-23 21:37  SongPlayShroudAegis\SongPlayShroudAegis\Properties\AssemblyInfo.cs
     文件        2884  2009-02-23 21:37  SongPlayShroudAegis\SongPlayShroudAegis\Properties\Resources.Designer.cs
     文件        5612  2009-02-23 21:37  SongPlayShroudAegis\SongPlayShroudAegis\Properties\Resources.resx
     文件        1103  2009-02-23 21:37  SongPlayShroudAegis\SongPlayShroudAegis\Properties\Settings.Designer.cs
     文件         249  2009-02-23 21:37  SongPlayShroudAegis\SongPlayShroudAegis\Properties\Settings.settings
     文件        4459  2010-07-09 19:28  SongPlayShroudAegis\SongPlayShroudAegis\SongPlayShroudAegis.csproj

评论

共有 条评论