How to set combobox default value in c++ -
i have combobox need have default value , value written in file. below added items combobox
combobox1->items->add("red"); combobox1->items->add("blue"); with code below write line text file selected combobox element. , in text file should see written word blue
sw->writeline("\"grey\") blah \"" + combobox1->selectedindex = 1 + "\" "); but c2106: '=': left operand must l-value error
you combining setting of index building string? combobox1->selectedindex = 1 should set active item second entry in combo box. error message indicates wants long value. not providing that.
Comments
Post a Comment