473,396 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Treeview multiselect problem

I am populating a treeview in c# from XmlFile, and i have implemented
a multiselection in that treeview by overriding treeview select
events when ctrl or shift is pressed, which was written a seperate
DLL, and added with my project,


now i hav a problem that when i select treeview nodes by pressing
shift key at a same time initially it is creating an exception
"Object
reference not set to an instance of an object" and the application
closes.


i know this is bcoz, i have enqued selected nodes to a arraylist.
once
it presses shift its starting enqueing, and at that time selected
node
is null, thats y it is generating this exception i guess,


can anybody tell me how could i solve this?
Apr 21 '08 #1
0 924

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: tod4 | last post by:
Hi, My problem: I have query with value klient and product. On my form Im using multiselect box as filter of klient value. Now I would like to use second multiselect on this form for product...
2
by: themoosman | last post by:
Does the tree view in VS 2005, have mutli select capability? If not does anyone know of any alternatives.
0
by: larry mckay | last post by:
does anyone know how to make a treeview control have a multiselect option? does anyone have any code that already does this? *** Sent via Developersdex http://www.developersdex.com ***...
4
by: dev | last post by:
Can we select multiple nodes in a visual studio 2005/.NET 2.0 treeview using CTRL/Shift or do we have to write all that code like in .NET 1.x? Thanks in advance. Bill
3
by: kaosyeti via AccessMonster.com | last post by:
hey... i have an unbound multiselect listbox on a form that i want to use to populate text boxes on that form. so if a user selects the 3rd item in a list of 20, how can i have that item show up...
2
by: =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post by:
Hi, Is it possilbe to multiselect nodes in a treeview control and drag and drop them
18
by: =?Utf-8?B?TGkgV2VuZw==?= | last post by:
Hi, Is there a way for TreeView to have multiple selections? But I am not talking about its checked boxes. I want a way similar to ListView with MultiSelect = True. So I can use or key and...
0
by: Selva Kumari Padmanabhan | last post by:
hi, i am a new to c#, i hav 4months experience in C#, I am populating a treeview in c# from XmlFile, and i have implemented a multiselection in that treeview by overriding treeview select...
2
by: Selva Kumari Padmanabhan | last post by:
hi, i am a new to c#, i hav 4months experience in C#, I am populating a treeview in c# from XmlFile, and i have implemented a multiselection in that treeview by overriding treeview select...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.