Re: ArgumentOutofRangeException in ListView
From: Imran Koradia (nospam_at_microsoft.com)
Date: 10/12/04
- Next message: Sylvain: "ToolBarButtonStyle.Separator"
- Previous message: Knut Vonheim: "Problem Moving User Controls to new development machine"
- In reply to: Brian Cobb: "Re: ArgumentOutofRangeException in ListView"
- Next in thread: Brian Cobb: "Re: ArgumentOutofRangeException in ListView"
- Reply: Brian Cobb: "Re: ArgumentOutofRangeException in ListView"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 12 Oct 2004 09:54:06 -0400
> 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: Sylvain: "ToolBarButtonStyle.Separator"
- Previous message: Knut Vonheim: "Problem Moving User Controls to new development machine"
- In reply to: Brian Cobb: "Re: ArgumentOutofRangeException in ListView"
- Next in thread: Brian Cobb: "Re: ArgumentOutofRangeException in ListView"
- Reply: Brian Cobb: "Re: ArgumentOutofRangeException in ListView"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|