ComboBox.BackStyle 屬性 (Access)ComboBox.BackStyle property (Access)

您可以使用 BackStyle 屬性來指定控制項是否為透明。You can use the BackStyle property to specify whether a control will be transparent. 可讀寫的 ByteRead/write Byte.

語法Syntax

運算式BackStyleexpression.BackStyle

_運算式_代表**ComboBox** 物件的變數。expression A variable that represents a ComboBox object.

註解Remarks

BackStyle 屬性使用下列設定值。The BackStyle property uses the following settings.

設定Setting Visual BasicVisual Basic 描述Description
正常的Normal 11 (選項群組以外所有控制項的預設值)控制項有內景色彩由BackColor屬性設定。(Default for all controls except option group) The control has its interior color set by the BackColor property.
透明Transparent 00 (選項群組的預設值) 控制項為透明的。(Default for option group) The control is transparent. 可以看見控制項後面的表單或報表色彩。The color of the form or report behind the control is visible.

您可以在 Visual Basic 使用控制項的預設控制項樣式或**DefaultControl** 屬性來設定此屬性的預設值。You can set the default for this property by using a control's default control style or the DefaultControl property in Visual Basic.

如果選取的背景色彩] 按鈕調色盤中的 [透明] 按鈕, BackStyle屬性設為 Transparent;否則,則BackStyle屬性設為 Normal。If the Transparent button on the Back Color button palette is selected, the BackStyle property is set to Transparent; otherwise, the BackStyle property is set to Normal.

若要讓命令按鈕看不見,請將其 Transparent 屬性為 [是]。To make a command button invisible, set its Transparent property to Yes.

支援和意見反應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.