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.
リストボックスがデータソースに接続されているかどうかを確認する方法はありますか?
私はそのようなことを意味します
if (listbox1.datascource.enabled == true) ....
はい、テストするだけです
if (listbox1.DataSource != null)
これは、すべての NET 関連の参照資料を見れば簡単に発見できます。
Listbox.DataSource の MSDN