摘要:
分享给大家一个好的代码生成器,C#代码和SQL数据库生成工具。http://cnsharp.com/cn/ 阅读全文
摘要:
原文地址:http://www.devexpresscn.com/devResources/page-18-78.html效果如下:代码如下:private void treeList1_CustomDrawNodeCell(object sender, DevExpress.XtraTreeList.CustomDrawNodeCellEventArgs e) { TreeList node = sender as TreeList; if(e.Node == node.FocusedNode) { ... 阅读全文
摘要:
本文转载:http://www.cnblogs.com/hexin0614/archive/2012/01/17/2324224.html 本人觉得把KeyWords属性改成如下更好:privatestring[]_KeyWords=newstring[]{"SELECT","UPDATE","DELETE","INSERT","DROP","FROM","WHERE","ALERT","CREATE"," 阅读全文
摘要:
#region节点拖拽事件//当用户开始拖动节点时privatevoidtvModel_ItemDrag(objectsender,ItemDragEventArgse){TreeNodeselectNode=e.ItemasTreeNode;this.tvModel.SelectedNode=selectNode;this.form.DoDragDrop(e.Item,DragDropEffects.Move);}//将对象拖入控件的边界时privatevoidtvModel_DragEnter(objectsender,DragEventArgse){TreeNodeenterNode=( 阅读全文