工具箱Toolbox

工具箱

显示标准的 Visual Basic 控件以及已添加到项目中的任何 ActiveX 控件和可插入对象。Displays the standard Visual Basic controls plus any ActiveX controls and insertable objects that you have added to your project.

可以通过向工具箱添加页面, 或者通过使用 "工具" 菜单中的 "附加控件" 命令添加控件来自定义工具箱You can customize the Toolbox by adding pages to it or by adding controls by using the Additional Controls command from the Tools menu. 在添加页面时,Select Objects 工具始终在页面上可用。When you add a page, a Select Objects tool is always available on the page.

按钮Button IconIcon 说明Description
Select ObjectsSelect Objects 标准工具箱控件 "选择对象" 是工具箱中不绘制控件的唯一项。Select Objects is the only item in the Toolbox that doesn't draw a control. 如果选择此项,您只能移动窗体上已绘制的控件或调整其大小。When you select it, you can only resize or move a control that has already been drawn on a form.
LabelLabel 标签 使您能够具有不希望用户更改的文本,如图形下面的标题。Allows you to have text that you do not want the user to change, such as a caption under a graphic.
TextBoxTextBox 文本框 保留用户可输入或更改的文本。Holds text that the user can either enter or change.
ComboBoxComboBox 组合框 允许您绘制组合列表框和文本框。Allows you to draw a combination list box and text box. 用户可从列表中选择项,也可以在文本框中输入值。The user can either choose an item from the list or enter a value in the text box.
ListBox 列表框 用于显示用户可从中进行选择的项列表。Use to display a list of items from which the user can choose. 如果列表包含可一次性显示的多个项,则可以滚动列表。The list can be scrolled if it has more items than can be displayed at one time.
CheckBoxCheckBox 复选框 创建一个框,用户可轻松选择它来指示某些内容为 true 还是 false,也可以选择它在用户可选择多个项时显示多个选择。Creates a box that the user can easily choose to indicate if something is true or false, or to display multiple choices when the user can choose more than one.
群组OptionButton 选项按钮 允许您显示用户只能从中选择一项的多个选择。Allows you to display multiple choices from which the user can choose only one.
切换ToggleButton 切换按钮 创建一个用于在打开和关闭状态之前切换的按钮。Creates a button that toggles on and off.
FrameFrame Frame 允许您为控件创建图形或功能分组。Allows you to create a graphical or functional grouping for controls. 若要对控件进行分组,请先绘制框架,然后在框架中绘制控件。To group controls, draw the frame first, and then draw controls inside the frame.
命令CommandButton 命令按钮 创建一个按钮, 用户可以选择该按钮执行命令。Creates a button that the user can choose to carry out a command.
TabStripTabStrip 选项卡条 允许您为应用程序中的窗口或对话框的相同区域定义多个页。Allows you to define multiple pages for the same area of a window or dialog box in your application.
MultiPageMultiPage 多页 将多屏信息表示为单个集合。Presents multiple screens of information as a single set.
滚动ScrollBar 滚动条 提供一个图形工具,该工具可用于快速浏览项的长列表或大量信息航、按照某个缩放比例指示当前位置或用作速度或数量的输入设备或指示器。Provides a graphical tool for quickly navigating through a long list of items or a large amount of information, for indicating the current position on a scale, or as an input device or indicator of speed or quantity.
SpinButton 数值调节钮 一个微调框控件, 可以与另一个控件一起使用, 以递增和递减数字。A spinner control that you can use with another control to increment and decrement numbers. 您还可以使用该控件向前和向后浏览值的范围或项的列表。You can also use it to scroll back and forth through a range of values or a list of items.
ImageImage 图像 通过窗体上的位图图标元文件显示图形图像。Displays a graphical image from a bitmap, icon, or metafile on your form. Image 控件中显示的图像只能为图案,并且它使用的资源要少于 PictureBox 使用的资源。Images displayed in an Image control can only be decorative and use fewer resources than a PictureBox.

另请参阅See also

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.