悟生慧

 
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 27 下一页

2011年12月7日

怎么在DataGridView中动态添加DateTimePicker列?

摘要: using System;using System.Windows.Forms;namespace MasterSoft.WinUI{ ///<summary> /// DataGridView 中的日历列 ///</summary> ///<example > /// DataGridViewCalendarColumn ordBillSubConsignmentDateDataGridViewCalendarColumn = new DataGridViewCalendarColumn(); /// ordBillSubConsignmentDateDa 阅读全文

posted @ 2011-12-07 16:21 悟生慧 阅读(1899) 评论(0) 推荐(0)

2011年11月29日

Winform 打印报表

摘要: Winform 打印报表(从网上看到的代码,感觉不错,上传以做备忘)winform 打印原理..1.先在画布上面画好表格2.然后传入要打印的数据代码如下:using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;using System.Drawing.Printing;using System.Drawing;namespace Etaocn.Util{ public class Printer { private DataGridView dataview; pri. 阅读全文

posted @ 2011-11-29 15:39 悟生慧 阅读(4451) 评论(1) 推荐(0)

合并GridView中某列相同信息的行(单元格)

摘要: /// <summary> /// 合并GridView中某列相同信息的行(单元格) /// </summary> /// <param name="GridView1">GridView</param> /// <param name="cellNum">第几列</param> public static void GroupRows(GridView GridView1, int [] cellNum)//已经改动过了现在是对指定多列后把相同信息合并 { //int []arr 阅读全文

posted @ 2011-11-29 11:00 悟生慧 阅读(378) 评论(0) 推荐(0)

2011年11月14日

电子表格(SpreadSheet)主要属性、方法和事件 原文:http://blog.csdn.net/zhangting1987/article/details/2065871

摘要: http://ufo-crackerx.blog.163.com/ 全球最大编程控件补丁仓库http://www.spreadsheetgear.com/support/samples/excel.aspx资源网站http://www.cnblogs.com/springSky/archive/2011/07/15/2107108.html博客园关于Devexpress 的xtraReports学习可制作复杂表头Spreadsheet.XMLData 字符串类型的属性,可用来获得或设置XML格式的电子表格内容。Spreadsheet.Range 该方法接受一个区域引用(例如A1:B2或A:B) 阅读全文

posted @ 2011-11-14 15:16 悟生慧 阅读(3105) 评论(0) 推荐(1)

2011年11月9日

C#之winfrom打印图片

摘要: 第一步:拖一个printDocument控件到界面。打印按钮的代码:C# CODE:privatevoid button1_Click(object sender, EventArgs e)//执行打印 { PrintDialog MyPrintDg =new PrintDialog(); MyPrintDg.Document = printDocument1; if (MyPrintDg.ShowDialog() == DialogResult.OK) { try { printDocument1.Print(); } catch { //停止打印 printDocument1.PrintC 阅读全文

posted @ 2011-11-09 16:30 悟生慧 阅读(15364) 评论(0) 推荐(1)

2011年11月8日

如何在zedgraph中设置X坐标轴显示格式为日期时间型?转自:http://topic.csdn.net/u/20110508/14/0eb351c2-cacb-4ad2-b83b-f2ceb374f699.html

摘要: zedgraph相关链接:http://download.csdn.net/tag/zedgraphhttp://download.csdn.net/detail/wuyazhe/2591699http://download.csdn.net/detail/wuyazhe/2588529教程相关链接http://wenku.baidu.com/view/ffcf461dc281e53a5802ff9a.html源码下载:1.http://download.csdn.net/download/liu5623/18649332.http://download.csdn.net/download/s 阅读全文

posted @ 2011-11-08 15:08 悟生慧 阅读(2999) 评论(0) 推荐(0)

2011年10月27日

C#多线程间同步-实例 原文:http://blog.csdn.net/zhoufoxcn/article/details/2453803

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;using System.Threading;namespace ThreadDemo{ class Program { static void Main(string[] args) { ThreadDemo demo = new ThreadDemo(1000); demo.Action(); } } /// <summary> /// 线程同步的实例 /// < 阅读全文

posted @ 2011-10-27 11:58 悟生慧 阅读(273) 评论(0) 推荐(0)

2011年10月26日

C#反射的应用 原文摘自:http://blog.csdn.net/Tsapi/article/details/6234205

摘要: 最近做一个系统采用Silverlight+WCF,其中用到反射,反射的作用很大。最让人体会得到的就是可以把字符串通过relection为实体,这个很方便,尤其在做系统配置时,用到的字符串可以通过系统反射回实体,对其操作,实现想要的功能。当然通过反射对接口继承等等都可以实现。以下是反射的说明和具体实例。概念上:反射(Reflection)是.NET中的重要机制,通过放射,可以在运行时获得.NET中每一个类型(包括类、结构、委托、接口和枚举等)的成员,包括方法、属性、事件,以及构造函数等。还可以获得每个成员的名称、限定符和参数等。有了反射,即可对每一个类型了如指掌。如果获得了构造函数的信息,即可. 阅读全文

posted @ 2011-10-26 11:06 悟生慧 阅读(458) 评论(0) 推荐(0)

2011年10月24日

ymPrompt消息提示组件js实现

摘要: 原文转自:http://preview.zcool.com.cn/code/new_code/031/ymPrompt消息提示组件<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>ymPr 阅读全文

posted @ 2011-10-24 14:45 悟生慧 阅读(2370) 评论(0) 推荐(0)

2011年9月27日

C#水晶报表的分页统计字段

摘要: 一、在报表里定义三个公式字段如:qty_head、qty_dtl、qty_foot二、给三个字段分别加上代码1. qty_head代码whileprintingrecords;numbervar qty:=0; //数字currencyVar qty:=0; //金额2. qty_dtl代码whileprintingrecords;numbervar qty; //数字currencyVar qty; //金额qty := qty + {tbOrderOut_Dtl_View.qty};3. qty_foot代码whileprintingrecords;numbervar qty; //数字c 阅读全文

posted @ 2011-09-27 15:09 悟生慧 阅读(906) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 27 下一页

导航