VB 2005中的速度 [英] Speed in VB 2005

查看:93
本文介绍了VB 2005中的速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从VB 2003升级到VB 2005.


我在Access中有一个4000记录表,我正在使用oleDB来处理数据

适配器填充到数据网格。在VB.2003中,在vb 2005中加载

数据网格需要2-3秒才需要20秒。有什么东西可以导致这个问题吗?

I upgraded from VB 2003 to VB 2005.

I have a 4000 record table in Access that I''m using oleDB to do a data
adapter fill to a Data Grid. In VB.2003 it takes 2-3 seconds to load the
data grid in vb 2005 it takes aroudn 20 seconds. IS there something that
could be causing this problem?

推荐答案

Stephen,
Stephen,

>有什么东西可能导致这个问题吗?
>IS there something that could be causing this problem?



很多,但在大多数情况下(不是全部)VBNet更快。


你能展示一块你的代码填充数据网格?

(只有VBNet虽然我很好奇你如何在VB6中使用该数据网格)

Cor


" Stephen Plotnick" < sp ******* @ groupcbf.comschreef在bericht

新闻:Nd *********************** *******@giganews.com ...

Yes a lot, but in most cases (not all) VBNet is faster.

Can you show a piece of your code that does the fill of the datagrid?
(only VBNet although I am curious how you use that datagrid in VB6)
Cor

"Stephen Plotnick" <sp*******@groupcbf.comschreef in bericht
news:Nd******************************@giganews.com ...


>我从VB 2003升级到VB 2005.


我在Access中有一个4000记录表,我正在使用oleDB来做数据

适配器填充到数据网格。在VB.2003中,在vb 2005中加载

数据网格需要2-3秒才需要20秒。是否有一些

可能导致这个问题?
>I upgraded from VB 2003 to VB 2005.

I have a 4000 record table in Access that I''m using oleDB to do a data
adapter fill to a Data Grid. In VB.2003 it takes 2-3 seconds to load the
data grid in vb 2005 it takes aroudn 20 seconds. IS there something that
could be causing this problem?



Hello Cor Ligthert [MVP],


* pokes * Cor,没有提到VB6。我知道2003年很久以前..


-Boo
Hello Cor Ligthert [MVP],

*pokes* Cor, There was no VB6 mentioned. I know 2003 was a long time ago..

-Boo

Stephen,
Stephen,

>是否有可能导致此问题的内容?
>IS there something that could be causing this problem?



很多,但在大多数情况下(并非全部)VBNet是更快。


你能展示一段填充数据网格的代码吗?

(只有VBNet虽然我很好奇你是如何使用这个数据网格的在VB6中)


Cor


" Stephen Plotnick" < sp ******* @ groupcbf.comschreef在bericht

新闻:Nd *********************** *******@giganews.com ......

Yes a lot, but in most cases (not all) VBNet is faster.

Can you show a piece of your code that does the fill of the datagrid?
(only VBNet although I am curious how you use that datagrid in VB6)

Cor

"Stephen Plotnick" <sp*******@groupcbf.comschreef in bericht
news:Nd******************************@giganews.com ...


>我从VB 2003升级到VB 2005.

我在Access中有一个4000记录表,我正在使用oleDB将数据适配器填充到数据网格中。在VB.2003中,在vb 2005中加载数据网格需要2-3秒才需要20秒。是否存在导致此问题的原因?
>I upgraded from VB 2003 to VB 2005.

I have a 4000 record table in Access that I''m using oleDB to do a
data adapter fill to a Data Grid. In VB.2003 it takes 2-3 seconds to
load the data grid in vb 2005 it takes aroudn 20 seconds. IS there
something that could be causing this problem?



" GhostInAK" < gh ******* @ gmail.com在留言中写道

新闻:是*********************** ***@news.microsoft.c om ...
"GhostInAK" <gh*******@gmail.comwrote in message
news:be**************************@news.microsoft.c om...

Hello Cor Ligthert [MVP],


* pokes * Cor,没有提到VB6。我知道2003年很长一段时间

前..


-Boo
Hello Cor Ligthert [MVP],

*pokes* Cor, There was no VB6 mentioned. I know 2003 was a long time
ago..

-Boo



fwiw,我希望看到任何dotNet代码的运行速度都快于完全编译和相同代码的优化VB6版本。哎呀......我想看一个dotNet

IDE,它启动的时间比制作一杯咖啡的时间短。哦

好​​......四核CPU即将问世。也许那时我们将从dotNet应用程序中看到386时代

的表现。


-

Ken Halter - MS- MVP-VB(来自VB6世界) - http://www.vbsight.com

请保持小组中的所有讨论..

在爱的记忆中 - http://www.vbsight.com/Remembrance.htm


这篇关于VB 2005中的速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆