2011-11-01 142 views
1

基本上,我創建了一個應用程序,可以讀取文本框中的值並將其寫入XML文件。而不是使用所有文本框,我想在一些組合框中添加,但我不確定它需要什麼屬性。組合框需要什麼屬性?

String ^strMake = this->txtMake->Text; 
      String ^strModel = this->txtModel->Text; 
      String ^strName = this->txtName->Text; 
      String ^strParentPart = this->txtParentPart->Text; 
      String ^strPartID = this->txtPartId->Text; 
      String ^strPartType = this->comboBox1->??????????????? 

(問號是什麼,我需要填寫)

回答

1

你的問題不清楚,你可能會感興趣的屬性有:Text,SelectedText,SelectedItem,SelectedValue

1

我不是一個C++程序員,但你可以嘗試SelectedText財產?