This sample demonstrates how to use the ScrollDropDownItems property of the ToolStripDropDown class to create a drop-down menu that can scroll when it contains more items than can be displayed at once.
In this example, we create a ToolStripDropDown and add several items to it. We set the ScrollDropDownItems property to true, which allows the drop-down menu to scroll when there are more items than can fit in the visible area. This is particularly useful for menus with a large number of items, as it improves usability by allowing users to access all options without overwhelming the interface.
WinForms (.NET Framework 4.8) で
スクロール可能な ToolStripDropDown メニューを実装するサンプルです。
ToolStripDropDown 内に ListView を配置することで
多数のアイテムをスクロール付きで表示できます。
- ToolStripDropDown に ListView を埋め込み
- スクロール可能なメニュー
- ImageList を使ったアイコン表示
- アイテムクリックイベント取得
- .NET Framework 4.8
- Windows Forms
- Visual Studio 2019 / 2022



