随笔分类 -  控件开发

摘要:最近项目中做一模块时偶发奇想,希望使用propertygrid的控件实现类似visual studio的属性样式,于是拿来一用,发现还真不是自己想象的那么简单,如果要实现一个比较好的展示,还真的需要不少技巧,通过自己的实践和网络的力量,“逢山开道,遇水搭桥”,总算是摸出一些门道,不敢私藏,拿出来与大家分享,呵呵。先来转一个基础的,源自msdnhttp://www.microsoft.com/taiwan/msdn/library/2002/Jul-2002/article/usingpropgrid.htm摘要:本文旨在帮助您了解 Microsoft .NET 框架中的 PropertyGri 阅读全文
posted @ 2013-11-29 15:14 Ruiky 阅读(16827) 评论(1) 推荐(0) 编辑
摘要:OFFICE 2007采用的Ribbon的概念,所以以前的commandbar().visible的方法在2007中是行不通的。VBA中的语句如下:1 application.ExecuteExcel4Macro "show.toolbar(""ribbon"",false)"VSTO中的代码如下Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 privatevoid button 阅读全文
posted @ 2012-06-15 14:10 Ruiky 阅读(1050) 评论(2) 推荐(0) 编辑
摘要:1 [DllImport("user32.dll", EntryPoint = "MoveWindow")] 2 static extern bool MoveWindow( 3 int Wnd, 4 int X, 5 int Y, 6 int Width, 7 int Height, 8 bool Repaint 9 );10 [DllImport("user32.dll")]11 ... 阅读全文
posted @ 2012-06-15 12:22 Ruiky 阅读(1699) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;using Excel = Microsoft.Office.Interop.Excel;using System.Diagnostics;using System.IO;using System.Collections;using System.Data;namespace Core.Helper{ /// <summary> /// excel 阅读全文
posted @ 2012-06-12 14:39 Ruiky 阅读(4622) 评论(2) 推荐(1) 编辑
摘要:Demo的界面我利用事件委托事件,仿http://www.cnblogs.com/huyong/写的公共分页用户控件C#代码 #region版权信息 /*---------------------------------------------------------------------* //项目名称:《Winform分页控件》 //文件名:Pager.cs //描述:分页控件 //作者:kwonyan *----------------------------------------------------------------------*/#endregion usingSyst 阅读全文
posted @ 2011-12-22 17:27 Ruiky 阅读(26426) 评论(9) 推荐(1) 编辑