私はGTKシャープなアプリケーションで作業しています。このコードはありますが、combobox1
は項目を表示していません。何故なの?なぜ私のコンボボックスにテキストが表示されないのですか?
ListStore store = new ListStore(typeof(myclass));
store.AppendValue(new myclass("hola",7));
store.AppendValue(new myclass("hola2",8));
store.AppendValue(new myclass("hola3",2));
combobox1.Model = store;
クラスmyclass
オーバーライドToString()
なぜ、コンボボックス 'combobox1.DisplayMember =" description "に対して以下のプロパティを設定していないのですか? combobox1.ValueMember = "id"; '? –