Problem with ListView Control in .NET 2005



Found an interesting bug in Visual Studio .NET 2005 for C#:

Create a list view.
Add 4 columns.
Compile and execute to verify that 4 columns appear.
Stop execution.
Edit the "Columns" from within the Properties window.

Bug 1:
Use the down arrow to move the 3rd column to the 4th position.
Compile and execute program.
You'll see that the column order is unchanged.

Bug 2:
Go back to the IDE and change the 4th column's DisplayIndex to 3. The
IDE will automatically update the 3rd column's DisplayIndex to 2 (but
only within the IDE).
Compile and execute program.
You'll see that the column order is unchanged.

In Bug 2, the IDE adds new code for only the 4th column,
"columnC.DisplayIndex = 3" but leaves the order of declaration as is.
Nor does the IDE add code for the DisplayIndex (in code) of the other
3 columns. So when the program executes, it displays the columns in
the order in which they were instantiated in code.

.



Relevant Pages

  • Re: emacs Vs Eclipse?
    ... > command-line tools to compile and execute? ... It is important to note that you don't *need* to use an IDE. ...
    (comp.lang.java.programmer)
  • Re: Delphi 2007 still cant find classes.pas on XP x64.
    ... I just moved a big project + packages to the old computer to compile there. ... So it seems it's definetly a Delphi 2007 IDE bug. ...
    (alt.comp.lang.borland-delphi)
  • Re: Emacs
    ... I know that's not a completly like sn IDE but it would be so ... After than I wrote a programme to firsts.cpp and ... how would I compile and execute that code? ...
    (comp.unix.programmer)
  • Re: How do you do this?
    ... SwiftForth, VFX, gForth, bigForth, iForth, tforth, win32Forth, ... ANS Forth is too powerful to execute from an untrusted source without ... So one could also compile the code with optimization ...
    (comp.lang.forth)
  • How do you do this?
    ... and read and execute each Forth word. ... So one could also compile the code with optimization ... executed by the worker system. ...
    (comp.lang.forth)