• 大小: 9.17MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-08
  • 语言: C#
  • 标签: C#  

资源简介

C# 屏幕录像软件(源代码),可以录制屏幕并保存为avi格式的视频文件,另外可以按帧数分割视频文件!默认录制好的文件保存在D盘!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ScreenKinescope.ClassFolder;
namespace ScreenKinescope
{
    public partial class frmGeneral : Form
    {
        public frmGeneral()
        {
            InitializeComponent();
        }
        baseClass bc = new baseClass();
        private void button2_Click(object sender EventArgs e)
        {
            this.Close();
        }

        private void button4_Click(object sender EventArgs e)
        {
            if (this.saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                txtPath.Text = ““;
                txtPath.Text = saveFileDialog1.FileName;
            }
        }

        private void frmGeneral_Load(object sender EventArgs e)
        {
            OleDbConnection conn=bc.GetConn();
            conn.Open();
            OleDbCommand cmd = new OleDbCommand(“select * from tb_VideoPath where ID=1“ conn);
            OleDbDataReader sdr = cmd.ExecuteReader();
            sdr.Read();
            string str = sdr[“strPath“].ToString().Trim();
            txtPath.Text = str;
            string Mycursor=sdr[“CursorYN“].ToString().Trim();
            if (Mycursor == “显示光标“)
            {
                radioButton1.Checked = true;
            }
            else
            {
                radioButton2.Checked = true;
            }
            conn.Close();
        }

        private void button1_Click(object sender EventArgs e)
        {
            if (txtPath.Text == ““)
            { }
            else
            {
                string strUpdate = “update tb_VideoPath set strPath=‘“+txtPath.Text.Trim()+“‘ where ID=1“;
                OleDbConnection conn = bc.GetConn();
                conn.Open();
                OleDbCommand cmd = new OleDbCommand(strUpdate conn);
                cmd.ExecuteNonQuery();
                string strCursor;
                if (radioButton1.Checked)
                {
                    strCursor = “update tb_VideoPath set CursorYN=‘显示光标‘ where ID=1“;
                }
                else
                {
                    strCursor = “update tb_VideoPath set CursorYN=‘隐藏光标‘ where ID=1“;
                }
                cmd = new OleDbCommand(strCursorconn);
                if (cmd.ExecuteNonQuery() > 0)
                {
                    conn.Close();
                    this.Close();
                }
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-04-26 14:54  ScreenKinescope\
     目录           0  2011-04-26 15:17  ScreenKinescope\ScreenKinescope\
     文件         935  2010-01-28 09:29  ScreenKinescope\ScreenKinescope.sln
     文件       43008  2011-04-26 15:25  ScreenKinescope\ScreenKinescope.suo
     目录           0  2011-04-26 14:54  ScreenKinescope\ScreenKinescope\bin\
     目录           0  2011-04-26 14:54  ScreenKinescope\ScreenKinescope\bin\Debug\
     文件       45056  2008-07-15 11:01  ScreenKinescope\ScreenKinescope\bin\Debug\AxInterop.SHDocVw.dll
     文件       53248  2008-07-15 11:09  ScreenKinescope\ScreenKinescope\bin\Debug\AxInterop.WMPLib.dll
     目录           0  2011-04-26 14:54  ScreenKinescope\ScreenKinescope\bin\Debug\Data\
     文件      167936  2010-01-29 17:03  ScreenKinescope\ScreenKinescope\bin\Debug\Data\ScreenData.mdb
     文件       32768  2011-04-22 14:46  ScreenKinescope\ScreenKinescope\bin\Debug\Interop.scripting.dll
     文件      131072  2011-04-26 14:55  ScreenKinescope\ScreenKinescope\bin\Debug\Interop.SHDocVw.dll
     文件       98304  2008-07-07 13:05  ScreenKinescope\ScreenKinescope\bin\Debug\Interop.WMEncoderLib.dll
     文件      290816  2011-04-22 14:46  ScreenKinescope\ScreenKinescope\bin\Debug\Interop.WMPLib.dll
     文件      116224  2011-04-26 14:56  ScreenKinescope\ScreenKinescope\bin\Debug\ScreenKinescope.exe
     文件      122368  2011-04-26 14:56  ScreenKinescope\ScreenKinescope\bin\Debug\ScreenKinescope.pdb
     文件       14328  2011-04-26 15:19  ScreenKinescope\ScreenKinescope\bin\Debug\ScreenKinescope.vshost.exe
     文件         490  2007-07-21 01:33  ScreenKinescope\ScreenKinescope\bin\Debug\ScreenKinescope.vshost.exe.manifest
     文件           1  2011-04-26 15:09  ScreenKinescope\ScreenKinescope\ClassDiagram1.cd
     目录           0  2011-04-26 14:54  ScreenKinescope\ScreenKinescope\ClassFolder\
     文件       13730  2008-07-16 10:44  ScreenKinescope\ScreenKinescope\ClassFolder\baseClass.cs
     目录           0  2011-04-26 14:54  ScreenKinescope\ScreenKinescope\ConverrtAviToBmp\
     目录           0  2011-04-26 15:25  ScreenKinescope\ScreenKinescope\Data\
     文件      167936  2011-04-26 14:58  ScreenKinescope\ScreenKinescope\Data\ScreenData.mdb
     文件        2648  2008-07-15 10:24  ScreenKinescope\ScreenKinescope\frmGeneral.cs
     文件        7325  2008-07-15 10:24  ScreenKinescope\ScreenKinescope\frmGeneral.Designer.cs
     文件        6017  2008-07-15 10:24  ScreenKinescope\ScreenKinescope\frmGeneral.resx
     文件       31484  2011-04-26 15:17  ScreenKinescope\ScreenKinescope\frmScreen.cs
     文件       24702  2011-04-26 15:17  ScreenKinescope\ScreenKinescope\frmScreen.Designer.cs
     文件       30949  2011-04-26 15:17  ScreenKinescope\ScreenKinescope\frmScreen.resx
     文件       20383  2008-08-21 14:39  ScreenKinescope\ScreenKinescope\frmVideoManager.cs
............此处省略60个文件信息

评论

共有 条评论