How to change text of wxComboBox based on it's selected item <p>How to change the value of a <code>wxComboBox</code> when user selects an item from its own drop down list? I have added <code>EVT_COMBOBOX(ID_WXCOMBODATETIME, CNFrm::WxComboDateTimeSelected)</code> to my <code>EVENT_TABLE</code>.</p> <pre><code>void CNFrm::WxComboDateTimeSelected(wxCommandEvent&amp; event ) { WxComboDateTime-&gt;SetValue ( "ljlk" ); } </code></pre> <p>trying <code>SetValue</code> in the function just empties the control, it doesn't set it. </p> <p>Any help is appreciated.</p>