<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gomana2</author_name>
  <author_url>https://blog.hatena.ne.jp/gomana2/</author_url>
  <blog_title>ごまなつ Blog</blog_title>
  <blog_url>https://gomana2.hatenablog.jp/</blog_url>
  <categories>
    <anon>技術系</anon>
  </categories>
  <description>ListView_SelectIndexChangedは、ListViewの選択されているアイテムのインデックスが変更された時に発火するイベントハンドラです。なので、処理は private void ListView1_SelectedIndexChanged(object sender, EventArgs e) { //何らかの処理 } となりますが、これではエラーになります。なぜか。それは、選択されているアイテムのインデックスが変更されるとき、一瞬-1がインデックスに入るからです。aからｂに選択されているインデックス変更するには、 aが選択されている 選択を外す bを選択する という処理…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgomana2.hatenablog.jp%2Fentry%2F2020%2F05%2F15%2F115230&quot; title=&quot;【C#】ListView_SelectIndexChangedは、一瞬-1がインデックスに入る - ごまなつ Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-15 11:52:30</published>
  <title>【C#】ListView_SelectIndexChangedは、一瞬-1がインデックスに入る</title>
  <type>rich</type>
  <url>https://gomana2.hatenablog.jp/entry/2020/05/15/115230</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
