欢迎加我的QQ群:193522571,一起来讨论、交流!

04 2016 档案

摘要:使用g.MeasureString()获得 使用MeasureString测量出来的字符宽度,总是比实际宽度大一些,而且随着字符的长度增大,貌似实际宽度和测量宽度的差距也越来越大了。查了一下MSDN,找到了下面这个理由: MeasureString 方法旨在与个别字符串一起使用,它在字符串前后包括少 阅读全文
posted @ 2016-04-23 18:07 swtool 阅读(9919) 评论(1) 推荐(2) 编辑
摘要:最近在看工厂开发模式,发现用到了反射,之前只听说过也没怎么用过;所以花了点时间重新温习了一遍; 反射的作用是动态的加载某个dll(程序集),并执行该程序集中的某个方法,并返回结果;当然也可以给该方法传递参数 namespace assembly_name { public class assembl 阅读全文
posted @ 2016-04-20 15:42 swtool 阅读(3417) 评论(0) 推荐(0) 编辑
摘要:ARC Arc Arc ARC; ATTDEF AttributeDefinition AttributeDefinition ATTDEF; ATTRIB AttributeReference AttributeReference ATTRIB; CIRCLE Circle Circle CIRC 阅读全文
posted @ 2016-04-19 09:31 swtool 阅读(529) 评论(0) 推荐(0) 编辑
摘要:本文实例总结了C#中WinForm程序退出方法技巧。分享给大家供大家参考。具体分析如下: 在c#中退出WinForm程序包括有很多方法,如:this.Close(); Application.Exit();Application.ExitThread(); System.Environment.Ex 阅读全文
posted @ 2016-04-12 09:50 swtool 阅读(5632) 评论(0) 推荐(0) 编辑
摘要:DBText除了左右左对齐且上下Base对齐的其对齐点为Position外,其余的都是AlignmentPoint 阅读全文
posted @ 2016-04-07 15:47 swtool 阅读(1532) 评论(0) 推荐(0) 编辑
摘要:窗体控件中是有个List控件(ASP.Net)和一个ListView控件(WinForm)。 就以ListView为例子吧,ListView控件可以包含很多项,也可以说是一个集合,就让我们来看看它的Items属性吧! ListView的Items类型是ListView.ListViewItemCol 阅读全文
posted @ 2016-04-06 14:35 swtool 阅读(2664) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 从上到下排列选择行 /// </summary> /// <param name="dgv"></param> /// <returns></returns> public static List<DataGridViewRow> SortedUpDownSele 阅读全文
posted @ 2016-04-06 14:29 swtool 阅读(960) 评论(0) 推荐(0) 编辑
摘要://获取鼠标相对于当前控件的位置 Point mousePos = dgvAddCommand.PointToClient(MousePosition); //获取鼠标相对于当前窗体的位置 mousePos = PointToClient(MousePosition); //获取鼠标相对于屏幕左上点 阅读全文
posted @ 2016-04-04 22:16 swtool 阅读(3870) 评论(0) 推荐(0) 编辑
摘要:Database本身就有TileMode的属性,我还去写了一个方法,晕! 阅读全文
posted @ 2016-04-03 17:43 swtool 阅读(240) 评论(0) 推荐(0) 编辑

欢迎加我的QQ群:193522571,一起来讨论、交流!
点击右上角即可分享
微信分享提示