Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

pg_dump blob, comp.dcom.sys.cisco roberson, WWWXXXAPC, XXXXDUP, lvm stripe vs raid 0, pws vs iis vs apache, Trap timeout pdksh, nu vot, wwwxxxapc, WWWXXXAPC site:board.issociate.de

Links

XODOX
Impressum

#1: treeview multiselect problem

Posted on 2008-04-21 10:25:10 by Selva Kumari Padmanabhan

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
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?

Report this message

#2: Re: treeview multiselect problem

Posted on 2008-04-22 12:31:54 by fyitang

On Apr 21, 4:25 pm, Selva Kumari Padmanabhan <selvakumar...@gmail.com>
wrote:
> 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
> 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?

maybe you just need add null check to the selected nodes, if it is
null, then do not enque it.

Report this message

#3: Re: treeview multiselect problem

Posted on 2008-04-22 13:36:12 by Selva Kumari Padmanabhan

On Apr 22, 12:31=A0pm, fyitang <fyit...@gmail.com> wrote:
> On Apr 21, 4:25 pm, Selva Kumari Padmanabhan <selvakumar...@gmail.com>
> wrote:
>
>
>
>
>
> > 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 =A0treeview 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?
>
> maybe you just need add null check to the selected nodes, if it is
> null, then do not enque it.- Hide quoted text -
>
> - Show quoted text -

yes that is a problem i have cleared that
anyway thanks for ur reply...

Report this message