Re: ArgumentOutofRangeException in ListView
From: Brian Cobb (BrianCobb_at_discussions.microsoft.com)
Date: 10/13/04
- Next message: Nobody: "Re: ArgumentOutofRangeException in ListView"
- Previous message: Ziphyre: "Re: Custom menu controls"
- In reply to: Imran Koradia: "Re: ArgumentOutofRangeException in ListView"
- Next in thread: Nobody: "Re: ArgumentOutofRangeException in ListView"
- Reply: Nobody: "Re: ArgumentOutofRangeException in ListView"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 13 Oct 2004 06:25:04 -0700
No prob on the vb code. It was easy enough to get working.
What exactly do you mean by "put a break point the Remove statement
and debug it step by step to see where exactly the exception is being
thrown."? Before posting I tried setting a break point on remove and then
doing a "Step Into". The problem is the next "step" I'm taken to is always
the closing brace in Main(). Being a relatively new user of VS .Net, perhaps
I've missed some other way to to trace the code that would provide more
information?
"Imran Koradia" wrote:
> > With a little reworking of the code, I was able to get this to compile;
> I guess you figured I'm VB'er - I gave my best shot at getting the syntax
> right for C# but looks like I still messed up ;-)
>
> > however; I'm still getting the same exception at the same place.
>
> I'm not sure why you would still get the error. I used the same code and its
> working fine. To make sure, I even created a new C# project and tried out
> the code you posted with a simple listview. That worked fine too. I also
> tried various views - Details, LargeIcon, etc etc.. For all of them, the
> piece of code worked fine. I believe its something else thats causing the
> exception to be thrown. I suggest you put a break point the Remove statement
> and debug it step by step to see where exactly the exception is being
> thrown. That seems to be the only way you can figure out what's going wrong.
>
> hope that helps..
> Imran.
>
>
>
- Next message: Nobody: "Re: ArgumentOutofRangeException in ListView"
- Previous message: Ziphyre: "Re: Custom menu controls"
- In reply to: Imran Koradia: "Re: ArgumentOutofRangeException in ListView"
- Next in thread: Nobody: "Re: ArgumentOutofRangeException in ListView"
- Reply: Nobody: "Re: ArgumentOutofRangeException in ListView"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|