- 博客(25)
- 收藏
- 关注
转载 C# 怎么子窗体调用父窗体的控件
http://bbs.csdn.net/topics/300078684子控件.Parent.Controls["你要设置控件名"].Text = ">??"; 搞定. 例如:this.TopLevelControl.Controls["statusStrip1"]
2016-08-25 22:00:19 5638
原创 通过StatusStrip访问 toolStripStatusLabel的属性
Form直接访问toolStripStatusLabel的属性,不能范围。报错。后来参考http://stackoverflow.com/questions/29829936/how-to-update-toolstripstatuslabel-text-from-a-method-passing-all-the-controls-ohttps://bytes.com/topic/c-
2016-08-25 21:56:07 2740
转载 如何在一个form里刷新另一个form里的datagrid
http://www.myexception.cn/c-sharp/65232.htmlif(IsExist) { ds.Clear(); myadapter.Fill(ds, "manager "); grid.DataSource = ds; grid.DataMember = "manager "; grid.Refresh(); } }
2016-08-24 00:24:51 783
转载 编写C#代码时,一个字符串太长如何换行
http://bbs.csdn.net/topics/80089037方法一:string sql = "SELECT a.serv_name,a.acct_id,b.detail,c.customer_name";sql += " FROM serv a,address b,acct c";sql += " WHERE a.acc_nbr = :acc_nbr";
2016-08-19 18:56:11 38166 3
转载 datagridView每行访问
http://www.c-sharpcorner.com/forums/fill-datagridview-using-datareader
2016-08-15 22:34:46 347
转载 DataGridView控件用法(一)绑定数据
http://www.360doc.com/content/14/0331/16/16325679_365222145.shtml
2016-08-15 18:37:38 1871
转载 SqlDataAdapter简单介绍
http://www.cnblogs.com/nliao/archive/2012/11/18/2775848.html SqlDataAdapter的Fill方法调用前不需要有活动的SqlConnection对象,SqlDataAdapter会自己打开strConn语句中的数据库,获取查询结果后,关闭与数据库的连接。如果已经存在SqlConnection对象,无论是否已经打开,SqlData
2016-08-15 18:36:36 543
转载 [C#] winform中的DataGridView的列宽设置(自动调整列宽)
http://blog.csdn.net/swarb/article/details/8493328this.IssuesDataGridView.AutoSizeColumnsMode=System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
2016-08-11 16:17:24 12647
转载 treeview 如何改变选中节点的背景。
http://stackoverflow.com/questions/12886402/how-to-change-background-color-of-selected-node-in-treeview-using-treeviewdrawmo写的非常好。解决了选中节点的文字前景色问题。 测试通过。SolidBrush greenBrush = new SolidBrush(Color
2016-08-10 22:55:01 2521
转载 TreeView.DrawNode Event 官方指南
https://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.drawnode.aspx
2016-08-10 22:50:58 1374
转载 treeview 鼠标划过显示红色,选择了显示系统缺省蓝色。
https://social.msdn.microsoft.com/Forums/windows/en-US/88382d08-8741-4223-9390-a7df5f946c17/treenode-mouseover-effect?forum=winforms非常好。测试通过。public class SharxXTreeView : TreeView { pu
2016-08-10 22:49:21 1021
转载 C# WinForm TreeView改变选中节点颜色,失去焦点时选中节点仍突显。
当用户焦点离开TreeView时,TreeView选中节点仍然高亮,但是颜色太浅,几乎看不出来。这里重写一下DrawMode();可以控制选中节点颜色。TreeView.HideSelection = False;可让选中节点保持高亮。http://greatverve.cnblogs.com/archive/2012/03/21/treeview-HideSelection.html
2016-08-10 18:38:04 1786
转载 datagridview 鼠标划过时字体变粗。
https://www.daniweb.com/programming/software-development/threads/423089/datagridview-changing-the-font-to-bold-when-a-mouse-is-hover-over-a-rowusing System.Data;using System.Drawing;using System
2016-08-10 17:14:17 938
转载 无法打开物理文件 操作系统错误 5:拒绝访问 SQL Sever
http://blog.sina.com.cn/s/blog_7e0127220101b62j.htmlhttp://www.codingwhy.com/view/370.html今天分离附加数据库,分离出去然后再附加,没有问题。但是一把.mdf文件拷到其它文件夹下就出错,错误如下: 无法打开物理文件 "E:\db\homework.mdf"。操作系统错误 5:"5(拒绝
2016-08-10 12:05:25 554
转载 What is the difference between Listview and Treeview?
Tree view control is designed to display data that is hierarchical in nature, such as organization trees, the entries in an index, the files, directories on a disk. It is often used in conjuction with
2016-08-09 19:11:46 338
转载 窗体文字居中
http://www.codeproject.com/Questions/439186/Center-Align-the-Text-of-Form-Title-Bar在Form_Load中调用即可。private void UpdateTextPosition() { Graphics g = this.CreateGraphics();
2016-08-09 15:29:21 1588
转载 visual studio 自动添加函数说明。
http://stackoverflow.com/questions/8256996/how-do-i-add-parameter-comments-for-a-method-in-c-sharp这个功能脚 the "feature" is called XML comments.。Just type /// right before your methods and VS wil
2016-08-05 22:03:46 1647
转载 fftw
http://wenku.baidu.com/link?url=3TS6UqnYfVxGpVBfJIIgxjjcXCKuW9NvklxfBLZaIdWJhY0HrpUSKyyuIHsNI2s4F9tSUOhP7pl7n5PLlSFvWqQdr6XvtpejqQenhJHJ9N7
2016-08-04 23:21:07 345
转载 C# 调用 C++ fftw
http://www.cnblogs.com/GhostZCH/archive/2012/04/08/2437675.html最近搞了个小程序需要用到FFT,可是找来找去都没有一种C#下可靠地FFT代码,而且速度也不能令人满意。发现MIT做过一个很好的C++类库(http://www.fftw.org/)可以比较好的解决FFT的问题而且运算速度号称世界最快的(虽然未经验证,不过的确很快
2016-08-04 22:57:19 1798 1
转载 c# gridview 分页
http://www.aspsnippets.com/Articles/Implement-Paging-DataGridView-in-Windows-Forms-WinForms-Application-using-C-and-VBNet.aspxhttp://www.codeproject.com/Articles/211551/A-Simple-way-for-Paging-in-Da
2016-08-03 22:26:43 1548
转载 c# Chart设置样式
http://www.cnblogs.com/liuxinls/archive/2013/04/26/3044219.htmlChart ChartBorder 图表区域的边框设置 ChartFill 图表区域的背景填充 Legend
2016-08-03 19:15:11 5080
转载 How to give custom labels to x axis of chart control?
I am creating a windows project in which there is a requirement to plot a graph, for that i am using chart control.The X-Axis of chart control has label from 0 to 100 with following code.
2016-08-03 19:13:41 390
转载 c#改变坐标轴的标注。
I have a chart it looks like this I want to change Y axis numbering and label it 1% 10% 33.% etc as shown below without changing the plot.How do I change itRequired output graph:
2016-08-03 18:56:12 5448
转载 C# chart 使用
http://stackoverflow.com/questions/10622674/chart-creating-dynamically-in-net-c-sharphttps://blogs.msdn.microsoft.com/alexgor/2009/02/20/data-binding-microsoft-chart-control/http://blog.sina.com
2016-08-02 20:35:20 288
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人