Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78587 --- shadow/78587 2006-06-05 17:02:57.000000000 -0400 +++ shadow/78587.tmp.16935 2006-06-05 17:02:57.000000000 -0400 @@ -0,0 +1,74 @@ +Bug#: 78587 +Product: Mono: Class Libraries +Version: unspecified +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: ListView: navigating with the cursor keys after Items.Clear and SelectedItems.Clear + +When you clear all items in a ListView and then add new items navigating +with the cursor keys is no longer possible. + +To reproduce this, open the filedialog sample. Select an item in the file +ListView. Hit backspace and try to navigate with the cursor keys again. + +At least here it crashes immediately. + +Expected behaviour would be that the first of the new items has the focus. + +Unhandled Exception: System.NullReferenceException: Object reference not +set to an instance of an object + at System.Windows.Forms.ListView.GetAdjustedIndex (Keys key) [0x00060] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:1112 + at System.Windows.Forms.ListView.ListView_KeyDown (System.Object sender, +System.Windows.Forms.KeyEventArgs ke) [0x00089] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:1222 + at (wrapper delegate-invoke) +System.MulticastDelegate:invoke_void_object_KeyEventArgs +(object,System.Windows.Forms.KeyEventArgs) + at (wrapper delegate-invoke) +System.MulticastDelegate:invoke_void_object_KeyEventArgs +(object,System.Windows.Forms.KeyEventArgs) + at System.Windows.Forms.Control.OnKeyDown +(System.Windows.Forms.KeyEventArgs e) [0x00018] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4295 + at System.Windows.Forms.Control.ProcessKeyEventArgs +(System.Windows.Forms.Message msg) [0x00051] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3335 + at System.Windows.Forms.Control.ProcessKeyMessage +(System.Windows.Forms.Message msg) [0x00027] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3370 + at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message m) +[0x008d7] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4059 + at System.Windows.Forms.ListView.WndProc (System.Windows.Forms.Message m) +[0x00007] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:1761 + at System.Windows.Forms.Control+ControlNativeWindow.WndProc +(System.Windows.Forms.Message m) [0x0000c] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:162 + at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, +IntPtr wParam, IntPtr lParam) [0x0005b] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:146 + at System.Windows.Forms.XplatUIX11.DispatchMessage +(System.Windows.Forms.MSG msg) [0x00022] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2662 + at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG +msg) [0x0000c] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:420 + at System.Windows.Forms.Application.RunLoop (Boolean Modal, +System.Windows.Forms.ApplicationContext context) [0x00244] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:490 + at System.Windows.Forms.Form.ShowDialog (IWin32Window ownerWin32) +[0x000b4] in +/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1208 _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
