随笔分类 -  C# winForm

C# 反射通过GetCustomAttributes方法,获得自定义特性
摘要:http://blog.csdn.net/litao2/article/details/17633107 使用反射访问: 自定义属性的信息和对其进行操作的方法。 一、实例1 1、代码: 如:System.Attribute[] attrs=System.Attribute.GetCustomAttr 阅读全文

posted @ 2017-12-18 13:52 chengjunde 阅读(1862) 评论(0) 推荐(0)

当类库项目中无法使用Application.StartupPath
摘要:通常我们WinForm编程时,要获取程序当前运行的文件夹路径会用Application.StartupPath ,但是Application.StartupPath在编写类库项目时却无法使用,因为我们根本无法用using System.Windows.Forms;来引入Application.Sta 阅读全文

posted @ 2016-05-13 17:22 chengjunde 阅读(2307) 评论(0) 推荐(1)

C# WinForm开发系列 - RDLC
摘要:http://www.cnblogs.com/peterzb/archive/2009/07/08/1519489.html http://jingyan.baidu.com/article/ab69b270ff9c6e2ca7189f0e.html 在MVC项目中使用RDLC报表 http://w 阅读全文

posted @ 2016-05-06 17:53 chengjunde 阅读(518) 评论(0) 推荐(0)

导航