2011-11-01 141 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财产?