如何在 .NET 及 VB6 的 ListView 控件中滚动指定行至可视位置

Posted by Admin L in .NET Programming, VB6 Programming on 25-04-2012. Tags: ,

作者:牧山道人
原文地址:https://www.seeksunslowly.com/dot-net-vb6-listview-scroll-row-sc
转载请注明出处,谢谢。
_____________________________________

有时,我们需要在 View 属性为 Details(VB6 为 3 – lvwReport) 的 ListView 中让某行(Item)位于可视位置,比如——显示用户的查找结果,如果记录太多,你不将结果滚动至可视位置,查找功能基本形同虚设。

这是个看起来非常复杂的问题,初次接触此需求时感觉要动用 API 才行。

但,所[……]

Read More…

How to get folder size in .NET

Posted by Admin L in .NET Programming, Common Programming on 24-04-2012. Tags: ,

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/dot-net-get-folder-size
To reprint this article, please indicate the source, thank you.
_____________________________________

The .NET built-in assemblies (I use .NET 3.5) do not provide a way to get the folder/directory size dir[……]

Read More…

.NET 中如何得到文件夹大小

Posted by Admin L in .NET Programming, Common Programming on 24-04-2012. Tags: ,

作者:牧山道人
原文地址:https://www.seeksunslowly.com/dot-net-get-folder-size-sc
转载请注明出处,谢谢。
_____________________________________

.NET 自带程序集(本道使用 .NET 3.5)没有提供直接获取文件夹/目录大小的功能。
若用原生 .NET 程序集,需要遍历某目录及其所有子目录下所有文件才能获得该目录大小,效率低下且编码繁琐。

如果您之前搞过 VB6 编程,应该知道 Windows 各版本均自带了一个 COM 组件——Windows Script Host Obje[……]

Read More…

Solved: read/write excel file too slowly in C#, Java, VB, Delphi, VC and other programming languages

Posted by Admin L in .NET Programming, Common Programming on 08-04-2012. Tags:

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/operation-excel-xlsx-slowly
To reprint this article, please indicate the source, thank you.
_____________________________________

Recently, I tried to import data from Excel to a ListView with Detail view in .NET, there are about[……]

Read More…

解决 C#、Java、VB、Delphi、VC 等语言中读写 Excel 文件太慢的问题

Posted by Admin L in .NET Programming, Common Programming on 08-04-2012. Tags:

作者:牧山道人
原文地址:https://www.seeksunslowly.com/operation-excel-xlsx-slowlw-sc
转载请注明出处,谢谢。
_____________________________________

最近,在 .NET 中尝试从 Excel 导入数据到 Detail 样式的 ListView 中,记录数在 3,000 左右,发现导入非常缓慢(将近 10 分钟),别说用户不能忍受,自己都无法接受,但这是必需的功能,不能去掉,所以必须想办法解决。

其中,读取 Excel 文档数据的方式为:逐行逐单元格读取,关键代码如下:

[c[……]

Read More…

Completely Solve .NET ListView Flickering Problem

Posted by Admin L in .NET Programming on 06-04-2012. Tags:

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/dot-net-listview-flicker-resolve
To reprint this article, please indicate the source, thank you.
_____________________________________

When I add, delete or modify ListView’s data (Items) with a high-frequency, the ListView contr[……]

Read More…

.NET ListView 闪烁问题的完美解决方法

Posted by Admin L in .NET Programming on 06-04-2012. Tags:

作者:牧山道人
原文地址:https://www.seeksunslowly.com/dot-net-listview-flicker-resolve-sc
转载请注明出处,谢谢。
_____________________________________

在对 ListView 数据(Items)作高频率的添加、删除、修改操作时,ListView 会出现闪烁。
这使软件显得很不专业,自己看着也眼花,所以,这是必须解决的难题。

尝试了 ListView 类的 BeginUpdate、EndUpdate、SuspendLayout、ResumeLayout、Refresh[……]

Read More…

An easy way to read/get/retrieve data from XML file by specified element/node/field name in .NET

Posted by Admin L in .NET Programming, Web Programming & Resources on 29-09-2011. Tags:

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/vb2008-dot-net-read-xml-data-by-element-field-node-name
To reprint this article, please indicate the source, thank you.
_____________________________________

Today, I first need to read data from XML file, think about file form[……]

Read More…

.NET 读取 xml 文件中指定元素/字段/节点数据的简单方法

Posted by Admin L in .NET Programming, Web Programming & Resources on 29-09-2011. Tags:

作者:牧山道人
原文地址:https://www.seeksunslowly.com/vb2008-dot-net-read-xml-data-by-element-field-node-name-sc
转载请注明出处,谢谢。
_____________________________________

今天第一次需要在 .NET 中读取 XML 文件内容,通过文件格式观想,感觉应可以直接指定元素(其实也就是字段、节点)名称直接取出,像读取 ini 配置文件一样方便。

但通过搜索 MSDN 示例及网上的资料,发现各位大仙给的方法十分复杂,好多人都去递归遍历了所有节点,再根据[……]

Read More…

VB2008 Coding Suggestion 1

Posted by Admin L in .NET Programming on 18-08-2011. Tags:

Author: Nosa Lee
Original Address: https://www.seeksunslowly.com/vb2008-coding-suggestion-1
To reprint this article, please indicate the source, thank you.
_____________________________________

Suggestion: Try to use .NET classes, and avoid using the classes that under Microsoft.VisualBasic[……]

Read More…