C#
Neil_Q_Wang
这个作者很懒,什么都没留下…
展开
-
Using a delegate to pass data between two forms.
<br />Introduction<br />This code demonstrates how you can pass data from one form to another using a delegate. The advantage of using a delegate is that the form from which you want to send the data, doesn't need to know anything about the form that it's转载 2011-05-13 12:25:00 · 532 阅读 · 0 评论 -
How to disable datagridview column header to alllow sorting
The easy way to disable the sorting feature by clicking column header is set DataGridViewColumnSortMode to NotSortable.//Disable datagridview column header to allow sorting. for (int i = 0; i原创 2011-05-13 09:04:00 · 446 阅读 · 0 评论 -
How to create a File-Compare function in Visual C#
This article is from Microsoft Support. The orignal article is on http://support.microsoft.com/kb/320348. This step-by-step article demonstrates how to compare two files to see if their conte原创 2011-06-23 07:54:00 · 632 阅读 · 0 评论 -
The max length of a byte array
The max length is different in 32bit OS and 64 bit OS. In a Windows 7 Pro, 64 bit OS, the max length of a byte array is 2147483591. Its "int.MaxValue - 56". byte[] b = new byte[int.MaxValue-原创 2011-06-30 08:51:00 · 541 阅读 · 0 评论 -
Safe, Simple Multithreading in Windows Forms, Part 3
From http://msdn.microsoft.com/en-us/library/ms993020.aspxSummary: Chris Sells discusses how to more cleanly communicate between a UI thread转载 2011-07-22 07:27:15 · 530 阅读 · 0 评论 -
Safe, Simple Multithreading in Windows Forms, Part 2
From http://msdn.microsoft.com/en-us/library/ms951109.aspxSummary: Explores how to leverage multiple threads to split the user interface (UI转载 2011-07-22 07:20:13 · 470 阅读 · 0 评论 -
Safe, Simple Multithreading in Windows Forms, Part 1
From http://msdn.microsoft.com/en-us/library/ms951089.aspxIt all started innocently enough. I found myself needing to calculate the area of转载 2011-07-22 07:11:58 · 454 阅读 · 0 评论