• 大小: 125KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-04
  • 语言: C#
  • 标签: c#  

资源简介

把根目录下的pdf或者.doc(支持的文件类型可以在系统里面自己添加)文件复制到左边的文件框中,在右边的框中可以编辑和查看,这样更加方便使用和查看文档

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Runtime.InteropServices;
using System.Drawing.Drawing2D;
namespace desk
{
    public partial class Form1 : Form
    {
        class W32API
        {

            [DllImport(“User32.dll“ EntryPoint = “FindWindow“)]
            public static extern IntPtr FindWindow(string lpClassName string lpWindowName);
            [DllImport(“User32.dll“ EntryPoint = “SetParent“)]

            public static extern IntPtr SetParent(IntPtr hWndChild IntPtr hWndNewParent);

            [DllImport(“SHELL32.DLL“ EntryPoint = “ShellExecuteA“)]
            static extern Int32 ShellExecute(IntPtr hwnd string lpOperation string lpFile string lpParameters string lpDirectory int nShowCmd);


            static public bool ShellExecute(string lpOperation string lpFile string lpParameters string lpDirectory)
            {
                int res = ShellExecute(IntPtr.Zero lpOperation lpFile lpParameters lpDirectory 5);
                if (res > 32) return true;
                else return false;
            }
        }
         
        public Form1()
        {
            InitializeComponent();
            pic = new PictureShower();
            bitmap = null;
             
            paintinfo = null;
        }

        protected override void OnPaint(PaintEventArgs e)
        {
             //base.OnPaint(e);

            Draw(e.ClipRectangle false);
        }

        PictureShower pic;
        Bitmap bitmap;
        Rectangle screenrect;
        Size screensize;
        void GetScreenInfo()
        {

            screenrect = Screen.PrimaryScreen.WorkingArea;
            screensize = new Size(screenrect.Width screenrect.Height);
        }
        void WindowInBotton(bool b)
        {
            if (b)
            {
                IntPtr hDeskTop = W32API.FindWindow(“Progman“ “Program Manager“);
                W32API.SetParent(this.Handle hDeskTop);
            }
            else
            {
                W32API.SetParent(this.Handle IntPtr.Zero);
            }
        }
        private void Form1_Load(object sender EventArgs e)
        {
           // this.KeyPreview=true; 
            WindowInBotton(true);
            pic.LoadSetting(System.Environment.CurrentDirectory + “\\settings.txt“);
            
            int intvel=pic.TickMunites * 60 * 1000 + pic.TickSecondes * 1000;
            if (intvel == 0) intvel = 2 * 1000;

            UpdateMenu();

            ready = true;
            Next(true);


            timer1.Interval = intvel;
            timer1.Tick += new EventHandler(timer1_Tick);
            timer1.Start();
            graphics = this.CreateGraphics();

            timer_formessage.Interval = 2 * 60 * 1000;
            timer_for

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

    I.A....      5632  2005-11-11 22:25  MyDesk\desk\bin\Debug\desk.vshost.exe

    I.A....     38400  2009-08-29 08:41  MyDesk\desk\bin\Release\desk.exe

    I.A....       723  2008-10-08 14:22  MyDesk\desk\bin\Release\desk.exe.lnk

    I.A....     79360  2009-08-29 08:41  MyDesk\desk\bin\Release\desk.pdb

    I.A....     14328  2009-08-29 08:41  MyDesk\desk\bin\Release\desk.vshost.exe

    I.A....       490  2007-07-21 01:33  MyDesk\desk\bin\Release\desk.vshost.exe.manifest

    I.A....       226  2009-12-04 15:06  MyDesk\desk\bin\Release\settings.txt

    I.A....     15519  2009-12-04 14:44  MyDesk\desk\bin\Release\桌面.rar

    I.A....      3911  2009-08-29 08:41  MyDesk\desk\desk.csproj

    I.A....     21452  2009-06-02 16:51  MyDesk\desk\Form1.cs

    I.A....     11920  2009-03-15 13:25  MyDesk\desk\Form1.Designer.cs

    I.A....      6423  2009-03-15 13:25  MyDesk\desk\Form1.resx

    I.A....      2097  2009-03-15 19:05  MyDesk\desk\HandWrite.cs

    I.A....       303  2009-06-02 20:47  MyDesk\desk\obj\desk.csproj.FileList.txt

    I.A....       672  2009-08-29 08:41  MyDesk\desk\obj\Release\desk.csproj.FileListAbsolute.txt

    I.A....       774  2009-08-29 08:41  MyDesk\desk\obj\Release\desk.csproj.GenerateResource.Cache

    I.A....     38400  2009-08-29 08:41  MyDesk\desk\obj\Release\desk.exe

    I.A....       180  2009-08-29 08:41  MyDesk\desk\obj\Release\desk.Form1.resources

    I.A....     79360  2009-08-29 08:41  MyDesk\desk\obj\Release\desk.pdb

    I.A....       180  2009-08-29 08:41  MyDesk\desk\obj\Release\desk.Properties.Resources.resources

    I.A....       180  2009-08-29 08:41  MyDesk\desk\obj\Release\desk.SettingForm.resources

    I.A....      4608  2009-08-29 08:41  MyDesk\desk\obj\Release\TempPE\Properties.Resources.Designer.cs.dll

    I.A....     13463  2009-03-15 19:14  MyDesk\desk\PictureShower.cs

    I.A....      1666  2008-10-08 12:39  MyDesk\desk\Program.cs

    I.A....      1180  2008-10-03 13:04  MyDesk\desk\Properties\AssemblyInfo.cs

    I.A....      2832  2009-08-29 08:41  MyDesk\desk\Properties\Resources.Designer.cs

    I.A....      5612  2008-10-03 13:04  MyDesk\desk\Properties\Resources.resx

    I.A....      1102  2009-08-29 08:41  MyDesk\desk\Properties\Settings.Designer.cs

    I.A....       249  2008-10-03 13:04  MyDesk\desk\Properties\Settings.settings

    I.A....     11149  2008-10-08 13:31  MyDesk\desk\SettingForm.cs

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

评论

共有 条评论