fenri's diary

基本的には勉強し始めたC#のメモ。後は140字で収まらない駄文。

ComboBoxの使い方

this.cmb_altitude_upper.BeginUpdate();					// 設定終了まで描画を止める
this.cmb_altitude_upper.DropDownStyle = ComboBoxStyle.DropDownList;	// 選択のみ
this.cmb_altitude_upper.Items.Clear();					// 初期化
this.cmb_altitude_upper.DataSource = m_AltitudeUpperDT;			// DataTableをDatasourceとする
this.cmb_altitude_upper.DisplayMember = "Display";			// ComboBox上に出る値の列名
this.cmb_altitude_upper.ValueMember = "Value";				// 選択されたConboBoxの名前に対する値
this.cmb_altitude_upper.SelectedValue = m_Config.Altitude_Upper;	// 初期値設定
this.cmb_altitude_upper.EndUpdate(); 					// 設定が終わったので描画開始