Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ListView にリストする必要がある多数のグループボックスがあります。
私が試してみました:
listView1.Controls.Add(new NewsBox());
(NewsBox は GroupBox から派生したカスタム クラスであり、標準のラベルと明確なサイズのみを備えています)
とにかく、それは最初のコントロールボックスのリストには機能しますが、2 つ以上のリストには機能しません。
何か案は?
これは機能しません。ListViewコントロールに複数のGroupBoxを含めることはできません。
ListViewに物事を追加するには、myListView.Items.Add(...)を使用します。