ComboBox 就像一个按钮? [英] ComboBox like a button?

查看:32
本文介绍了ComboBox 就像一个按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过看起来像底部右侧带有小箭头的按钮的组合框,表明它是一个带有多个选项的下拉菜单.这是怎么做的?我可以更改组合框的属性吗?谢谢!

I have seen comboBoxes that looks like buttons with a small arrow to the right at the bottom, indicating that it's a drow down menu with several options. How is this done? Is there something I can change in the properties of the comboBox? Thanks!

我在 Visual Studio 2010 中使用 Windows 窗体

I'm using Windows Forms in Visual Studio 2010

推荐答案

这称为 SplitButton,在 .NET 中,您可以将其用于工具栏,但不能用于普通的 WinForms.

This is called SplitButton and in .NET you have this available for toolbars but not for use in normal WinForms.

但是,还有一些替代方案,例如:

However, there are some alternatives such as:

  1. Codeproject 上的这个
  2. 另一个关于 CodeProject
  3. 这里还有一个

这篇关于ComboBox 就像一个按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆