摘要:
树的2个事件代码如下,通过节点的tag判断是否禁用节点前的复选框.树的节点加载时设置要禁用的节点tag为-1,不禁用的则设为相关的值private void treeListPer_CustomDrawNodeCheckBox(object sender, DevExpress.XtraTreeList.CustomDrawNodeCheckBoxEventArgs e) { //TreeListNode listNode = sender as TreeListNode; if (e.Node.Tag.ToString()=="-1"... 阅读全文
摘要:
CheckBoxes 为真代码如下using System.Runtime.InteropServices;#region 树的复选框隐藏 private const int TVIF_STATE = 0x8; private const int TVIS_STATEIMAGEMASK = 0xF000; private const int TV_FIRST = 0x1100; private const int TVM_SETITEM = TV_FIRST + 63; [StructLayout(LayoutKind.Se... 阅读全文
摘要:
最近修改了一下.可以更方便的用在各个窗体上了代码也简洁很多.直接引用一下就能使用不过只处理了窗口的左上右三个方向 .下边没处理/// <summary> /// 窗口停靠隐藏类 /// 使用方法 /// private FormDock formDock = null; /// formDock = new FormDock(this,300); /// </summary> public class FormDock { #region 自定义声明 /// <summary> /// 定义计时器 ... 阅读全文
摘要:
/// <summary> /// 加密/解密类 /// </summary> public class EncAndDec { //加密/解密钥匙 const string KEY_64 = "jzw7tz8g";//注意了,是8个字符,64位 const string IV_64 = "tvbzn9i7";//注意了,是8个字符,64位 const string ClientLocal_KEY_64 = "xinxinwb"; const string ClientLocal_IV... 阅读全文
摘要:
要使用一个Dev下拉框控件的ToolTip功能,找了半天没有ToolTip这个属性,而是换成了SuperTip属性,而且用法还和普通控件的用法不太一样我要实现像图片中效果,当鼠标放在毕业办理批次上时会显示文本框里的内容SuperTip可以在设计时直接写上,也可以用代码实现SuuperTip分为Title,Contents,Footerd三个部分,每个部分中间还可以用分割线分开实现上面的效果代码如下://声明一个SuerToolTipDevExpress.Utils.SuperToolTip graduationBatchSuperToolTip = new DevExpress.Utils.S 阅读全文