where is the count property?? (treeview)
The TreeNodeCollection class is a collection class of TreeNode objects. so treeview1.Nodes is of type TreeNodeCollection
Where in the HELL is the count property for the nodes???
If I do treeview1.nodes.count it works.. but it doesn't come up in intellisense...
http://msdn.microsoft.com/library/de...mberstopic.asp
Re: where is the count property?? (treeview)
I would really be interested to hear Microsofts explination on this... I mean is to save resources or is to make VB users feel dumb?
Re: where is the count property?? (treeview)
That "Hide Advanced Members" option isn't available for VB, or at least it isn't in my IDE. VB shows two tabs on Intellisense: Common and All. C# just shows a single list and if you check "Hide Advanced Members" it will only show the ones that appear on the Common tab in VB. It is obviously done to reduce the number of members listed by removing those that are not commonly used. Maybe there have been some mistakes or slightly questionable criteria applied to decide which members are advanced but the motivation is fair enough. If you don't want an option applied then you don't apply it. Doesn't everyone go through the Options dialogue when they've installed a new application to see what settings there are available?
Re: where is the count property?? (treeview)
I asked 12 Vb programmers I work with and showed them this. They had no clue and most of them started asking me questions about what option to set to do blah blah blah.
I do that myself I set all my options turn on line numbers....
You are using 2005 in my 2005 the check box is disabled and yeah they have the Common and All. Pre 2005 in VB it is checked by default and only avaliable for VB.
Re: where is the count property?? (treeview)
Then obviously they have improved the situation in VS 2005. This is a manifestation of the idea that VB is supposed to be easier for the less technically-minded programmer. I never had this issue even when I was using VS.NET 2003. If you don't go through the Options dialogue then you're likely to miss some options I guess. The first thing I do when I install a new app is open the Options, Settings or Preferences dialogue. I suggest that everyone does the same.
Re: where is the count property?? (treeview)
yes.. this thread is pretty old (I started it in 2004)
This was something that affected .NET 2003 (and possibly 2002) but was NOT an issue in 2005.
Re: where is the count property?? (treeview)
Hmmm... didn't notice the dates on the earlier threads; only the latest one. I guess searching can dredge up old threads.
Re: where is the count property?? (treeview)
I always check the Options, Preferences etc dialogs first, too...