资源简介
把根目录下的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个文件信息
- 上一篇:道格拉斯压缩算法 AE
- 下一篇:C# xm
l操作类库加强版
相关资源
- C#初级不涉及数据库的学生成绩管理系
- C#制作PDF以及源代码.rar
- 单像空间后方交会C#版
- C# Excel导入导出
- 适合于WinCE应用开发的压缩解压缩库
- C#监控剪切板
- 对C#的树型控件TREEVIEW添加背景图片
- 用c#写的五子棋源代码
- C#中在picturebox中实时画矩形框
- C#在一块空间中鼠标中键操作图像
- C#制作qq截图自动框选功能
- 显示所有缓存 清除所有缓存 Asp.net(
- C#自动截屏/定时截屏/自动保存/快捷键
- C# 通过鼠标滚轮实现缩放图片和移动
- C# 动态生成RDLC报表
- C#调用考勤机API读取记录
- c# 真正的线控件直线、斜线而且不会
- C#写的 模拟 cmd界面
- c# winform 超漂亮按钮 控件
- C# 内存处理器、网络上行与下行实时
- 仿QQ的C#源码、仿QQ的C#源码
- C#版人机对弈五子棋
- MPU6050 实时图表上位机 C#
- C#编码实现的开心消消乐游戏
- C# 计算机行为监控
- 定时调用接口小工具.zip
- C#实现shp文件的读取和显示程序
- 国密算法SM2、SM3、SM4的C#源码
- C# 模拟电梯控制源码
- C#节点的使用.zip
评论
共有 条评论