随笔分类 - C# 应用代码
摘要:protected override void WndProc(ref Message m){ if (m.Msg==0x112) { switch ((int) m.WParam) { //禁止双击标题栏关闭窗体 case 0xF063: case 0xF093: m.WParam = IntPtr.Zero; break; //禁止拖拽标题栏还原窗体 case...
阅读全文
摘要:最近在上网的时候,发现了这个C# 下的 OutlookBar 控件,看了一下感觉还真不错,特此记录一下。using System;using System.Drawing;using System.Windows.Forms;namespace OutLookBarDemo{ internal class BandTagInfo { public OutlookBar outlookBar; public int index; public BandTagInfo(OutlookBar ob, int index) { ...
阅读全文
摘要:最近发现群共享里面有个C# 文件操作封装类,其方法是调用Windows API 来操作的文件的删除、移动、复制、重命名操作。下载下来一试,发现果然不错,特在此记录,以防丢失!文件操作类代码如下:C# 文件操作类using System;using System.Runtime.InteropServices;using System.IO;namespace LxFile{ /// <summary> /// 文件操作代理,该类提供类似于Windows的文件操作体验 /// </summary> public class FileOperateProxy { ...
阅读全文