<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-forward-container"><br>
      <br>
      -------- Forwarded Message --------
      <table class="moz-email-headers-table" cellpadding="0"
        cellspacing="0" border="0">
        <tbody>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
            </th>
            <td>Fwd: Review of PR #1407 - [MWF] Fix focus issue when
              removing last item in ListView</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
            <td>Wed, 19 Nov 2014 14:23:57 -0500</td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      Can you send this message to the mono-devel-list?  Mine hasn't
      been moderated yet.  Maybe if you send it, then it will get
      reviewed.<br>
      <br>
      Chris<br>
      <div class="moz-forward-container"><br>
        <br>
        -------- Forwarded Message --------
        <table class="moz-email-headers-table" cellpadding="0"
          cellspacing="0" border="0">
          <tbody>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:

              </th>
              <td>Review of PR #1407 - [MWF] Fix focus issue when
                removing last item in ListView</td>
            </tr>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date:
              </th>
              <td>Tue, 18 Nov 2014 09:28:55 -0500</td>
            </tr>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From:
              </th>
              <td>Chris Hubbard <a moz-do-not-send="true"
                  class="moz-txt-link-rfc2396E"
                  href="mailto:chris_hubbard@sil.org"><chris_hubbard@sil.org></a></td>
            </tr>
            <tr>
              <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
              <td><a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:mono-devel-list@lists.ximian.com">mono-devel-list@lists.ximian.com</a></td>
            </tr>
          </tbody>
        </table>
        <br>
        <br>
        <meta http-equiv="content-type" content="text/html;
          charset=utf-8">
        Hello,<br>
        <br>
        We found an issue while testing a form that uses
        System.Windows.Forms.ListView.<br>
        <br>
        <meta http-equiv="content-type" content="text/html;
          charset=utf-8">
        If the last item in a ListView has focus and it is removed by<br>
        an another action on the form (i.e. push a button to remove the<br>
        current item), then the focused_item_index is not updated when<br>
        the VirtualListSize changes, even though that item doesn't exist<br>
        anymore. When the ListView receives focus again, it tries to<br>
        invalidate the current focused item which causes an<br>
        ArgumentOutOfRangeException.<br>
        <br>
        <meta http-equiv="content-type" content="text/html;
          charset=utf-8">
        When the VirtualListSize changes, the focus_item_index should<br>
        be reset (similar to how it currently resets the selected
        indices).<br>
        <br>
        <a moz-do-not-send="true" class="moz-txt-link-freetext"
          href="https://github.com/mono/mono/pull/1407">https://github.com/mono/mono/pull/1407</a><br>
        <br>
        Thanks,<br>
        <br>
        Chris Hubbard<br>
        <br>
      </div>
      <br>
      <br>
    </div>
    <br>
    <br>
  </body>
</html>