rant - vb.net treeview控制nodeclick事件丢失了吗? [英] rant - vb.net treeview control nodeclick event missing?

查看:48
本文介绍了rant - vb.net treeview控制nodeclick事件丢失了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从VB6升级,在那里我可以访问一个树视图NodeClick事件

(见下文)......但是现在VB.NET已经没有这个了。


私有子TreeView1_NodeClick(ByVal节点为MSComctlLib.Node)

''VB6代码在这里。

结束子


VB.NET方式似乎是在

TreeView的Click事件中检查SelectedNode属性...但是这是极其错误的,实际上是

在一些非常简单的情况下失败,告诉我一个节点是选择了
,实际上另一个节点显示为选中。这很容易重现行为,如果有人感兴趣,我会发送代码。


我发现很难相信微软的程序员仍然无法生产优质的代码(虽然我不应该感到惊讶)。这就像

TreeView控件是他们无法理解的。我们已经拥有它了

年!你会认为它应该会变得更好 - 不会更糟!


我正在使用Infragistics UltraTreeView控件,虽然它没有

有一个NodeClick事件或者,它的SelectedNode属性似乎可以作为

预期。因此,我不会使用Microsoft控件。


摘要:


* Microsoft无法编写TreeView控件。


*微软不能写出不错的帮助文件。

帮助文件不仅包含完全没用的废话(并发送给你

在我的双奔腾处理器(2.4GHz)上是如此的慢,

我使用谷歌查询信息的速度比用来查询信息要快得多。 b $ b询问我自己的硬盘。这是微软的进步吗?你决定了。


*我提到帮助文件是没用的吗?哦是啊...抱歉。


- 彼得


I am upgrading from VB6 where I had access to a treeview NodeClick event
(see below)... but now VB.NET does not have this any more.

Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
'' VB6 code here.
End Sub

The VB.NET way seems to be inspect the SelectedNode property within the
TreeView''s Click event... however this is extreamly buggy, and actually
fails under some very simple circumstances, telling me that one node is
selected, when in fact a different node is shown as selected. This is easily
reproducible behaviour, and I''ll send the code if anyone''s interested.

I find it hard to believe that Microsoft programmers STILL can''t produce
good quality code (although I should not be surprised). It''s like the
TreeView control is something they just can''t fathom. We''ve had it for
years!!! You''d think it should actually get better - not worse!

I am using the Infragistics UltraTreeView control and although it does not
have a NodeClick event either, it''s SelectedNode property seems to work as
expected. As a result, I am not going to use the Microsoft control.

Summary:

* Microsoft can''t write TreeView controls.

* Microsoft can''t write decent help files.
Not only does the help file contain utterly useless crap (and send you
around in circles) it is so SLOW on my Dual Pentium Processor (2.4GHz) that
it is quicker for me to look up information using Google, than it is to
interrogate my own Hard Drive. Is this progress my Microsoft? You decide.

* Did I mention the help file was useless? Oh yeah... sorry.

- Peter


推荐答案

嗨垃圾邮件,
Hi Spam,
我发现很难相信微软的程序员仍然无法生成高质量的代码(虽然我不应该感到惊讶)。
我使用的是Infragistics UltraTreeView控件,虽然它也没有NodeClick事件,但是它的SelectedNode属性似乎可以像
一样工作。
I find it hard to believe that Microsoft programmers STILL can''t produce
good quality code (although I should not be surprised). I am using the Infragistics UltraTreeView control and although it does not
have a NodeClick event either, it''s SelectedNode property seems to work as
expected.




您无法确定SelectedNode属性是否按预期在您的

程序中运行。


您确定你有责任责怪微软的程序员吗?


只是我的想法。


Cor



You are not really able to tell if the SelectedNode property works in your
program as expected.

Are you sure that you have the the right to blame the Microsoft programmers?

Just my thought.

Cor


*垃圾邮件陷阱 < SP ** @ midar.com> scripsit:
* "Spam Trap" <sp**@midar.com> scripsit:
Private Sub TreeView1_NodeClick(ByVal Node as MSComctlLib.Node)
这里的VB6代码。
结束Sub

VB.NET方式似乎是检查了TreeView的Click事件中的SelectedNode属性......但是这非常错误,实际上在一些非常简单的情况下失败了,告诉我一个节点是
选择,实际上当另一个节点显示为选中时。这很容易重现行为,如果有人感兴趣,我会发送代码。


您是否可以发布一些代码以轻松重现该行为?

帮助文件不仅包含完全无用的废话(并发送给您
)在我的双奔腾处理器(2.4GHz)上它是如此慢,以至于我使用谷歌查询信息的速度比我查询自己的硬盘更快。这是微软的进步吗?你决定。
Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
'' VB6 code here.
End Sub

The VB.NET way seems to be inspect the SelectedNode property within the
TreeView''s Click event... however this is extreamly buggy, and actually
fails under some very simple circumstances, telling me that one node is
selected, when in fact a different node is shown as selected. This is easily
reproducible behaviour, and I''ll send the code if anyone''s interested.
Can you post some code to easily reproduce that behavior?
Not only does the help file contain utterly useless crap (and send you
around in circles) it is so SLOW on my Dual Pentium Processor (2.4GHz) that
it is quicker for me to look up information using Google, than it is to
interrogate my own Hard Drive. Is this progress my Microsoft? You decide.




Mhm ... MSDN Library在我的PII 350 MHz上运行得非常快。


; - > ;


-

Herfried K. Wagner [MVP]

< http://www.mvps.org/ dotnet>



Mhm... The MSDN Library runs very fast on my PII 350 MHz.

;->

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


" Cor" < no*@non.com>在消息中写道

新闻:eS ************** @ TK2MSFTNGP11.phx.gbl ...
"Cor" <no*@non.com> wrote in message
news:eS**************@TK2MSFTNGP11.phx.gbl...
嗨垃圾邮件,
Hi Spam,
我发现很难相信微软程序员仍然无法生成高质量的代码(虽然我不应该感到惊讶)。
I find it hard to believe that Microsoft programmers STILL can''t produce
good quality code (although I should not be surprised).
I我正在使用Infragistics UltraTreeView控件,尽管
也没有NodeClick事件,它的SelectedNode属性似乎按预期工作
I am using the Infragistics UltraTreeView control and although it does not have a NodeClick event either, it''s SelectedNode property seems to work as expected.



你真的无法判断SelectedNode属性是否按预期在你的
程序中运行。

你确定你有权责怪微软



You are not really able to tell if the SelectedNode property works in your
program as expected.

Are you sure that you have the the right to blame the Microsoft



程序员?
只是我的想法。

Cor


programmers?
Just my thought.

Cor




这是一个非常大胆的声明!你用VB.any版编程

多久了?


- 彼得



That''s quite a bold statement yourself! How long have you been programming
with VB.any-version?

- Peter

这篇关于rant - vb.net treeview控制nodeclick事件丢失了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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