G
Guest
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
(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