直接增加个应用程序配置文件,添加以下代码即可
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Drivers" />
</assemblyBinding>
</runtime>
更多详细介绍http://www.cnblogs.com/chenxizhang/archive/2013/03/14/2959688.html
//Cbo控件数据源绑定DataTable DtType = noteType.GetTypeList("");  ...
首先,要想遍历,就必须找到你想找的表单里面的所有控件,然后一个个的逐一比对,当找到了你需要的控件的时候,再做你需要的操作。1、foreach方法foreach (Control control in ...
//获得程序集System.Reflection.Assembly assem = System.Reflection.Assembly.GetExecutingAssembly();...
//以ToolStrip为例绘制简便背景e.Graphics.FillRectangle(new System.Drawing.Drawing2D.LinearGradientBrush(new System.Drawing.Point(...
System.Threading.Timer 是一个简单的轻量计时器,它使用回调方法并由线程池线程提供服务。在必须更新用户界面的情况下,建议不要使用该计时器,因为它的回调不在用户界面线程上发生。在此类情况下,System.Windows....
Boolean mutexWasCreated;//声明一个Boolean值,用于下面的Out//true 为是否给予当前这个线程互斥的功能, true为是, false为否,也就是说是否不允许两个相同名称的线程存在//可以...