摘要:windows用户界面编程中的界面闪烁问题 在windows图形化用户界面编程中,若程序自己绘制用户界面时,会经常碰到界面闪烁,比如其他窗口在上面移动,用户界面滚动,这些都有可能导致闪烁。在一个容器中绘制特定的文档,需要相应作为绘图容器的控件的onpaint事件,需要在onpaint事件处理中重新绘制文档,而windows操作系统一般会在两种情况下触发onpaint事件:容器控件被其他窗体覆盖后又......
摘要:前些日子,有很多朋友说需要c#导出到excel的代码,现共享给大家/// <summary> /// 读取excel文档 /// </summary> /// <param name="path">文件名称</param> /// <returns>返回一个数据集</returns> public data......
A sample class to clean the input into web pages [from petshop]
using system;using system.text;namespace petshop.web.webcomponents{ /**//// <summary> /// a sample class to clean the input into web pages /// </summary> public sealed class cleanstring { public static string inputtext(string inputstring, int maxlength) { stringbuilder retval = new stringbuilder(); // check incoming parameters for null or blank string if ((inputstring != null) && (inputstring != string.empty)) { inputstring = inputstring.trim(); //chop the string incase the client-side max length&n...
下一页 摘要:3. aopproxyattribute aop代理特性/****************************** aopproxyattribute ************************************using system;using system.runtime.remoting ;using system.runtime.remoting.proxies ;nam......