例 次のコード例では、 プロパティを値に設定してコントロールをComboBox.DropDownStyle初期化ComboBoxする方法をComboBoxStyle示します。 // Declare comboBox1 as a ComboBox. internal: System::Windows::Forms::ComboBox^ ComboBox1; private: // This method initializes the combo box, adding a large string array // but limiting the drop-down size to six rows so the combo box doesn't // cover other controls when it expands. void InitializeComboBox() { t
![ComboBoxStyle 列挙型 (System.Windows.Forms)](https://cdn-ak-scissors.b.st-hatena.com/image/square/d6e4cb632c7025e9f5e05fd314fbf6dcd6144e8d/height=288;version=1;width=512/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fmedia%2Fopen-graph-image.png)