Problem With ComboBox
-
Hi all, After Selecting An item in Combobox (Using Mouse), It is Generating an event SelectedValueChanged() . 1. In that I have written a code to Display a part of the string. It is displaying on the combobox. 2. but Immediatly ,it is displaying The whole string which i Selected with the mouse. I dont need 2nd part. can any suggest me what is happening with that event. Why it is displaying full selected Text. Thanks In Advance. Nagaraju
-
Hi all, After Selecting An item in Combobox (Using Mouse), It is Generating an event SelectedValueChanged() . 1. In that I have written a code to Display a part of the string. It is displaying on the combobox. 2. but Immediatly ,it is displaying The whole string which i Selected with the mouse. I dont need 2nd part. can any suggest me what is happening with that event. Why it is displaying full selected Text. Thanks In Advance. Nagaraju
if u can paste the code u have written then i would be helpful to suggest u something. ---------------------------------------
where there is a will there is a way
-
if u can paste the code u have written then i would be helpful to suggest u something. ---------------------------------------
where there is a will there is a way
I am sending My code. private: System::Void cboSelect_SelectedValueChanged(System::Object^ sender, System::EventArgs^ e) { String ^str; str=cboSelect->SelectedItem->ToString()->SubString(0,5); cboSelect->Text=str; } I need to print only 5 charecters from Selected Item on the comboBox. I have Tried above code with SelectedIndexChanged() and SelectionChangeCommitted(),but failed. please Help out. Nagaraju