Newbie Ques: Why press "Enter" on combo box caused my application to exit?
I'm still new to VC++6.0.
I have a combobox which is of the dropdown list type.
My problem is whenever you have selected an item and I press "enter" key, this causes my whole application to exit and this is not acceptable as user is still filling the form.
Would appreciate your help on how to stop this?
Urgent need of help.
What do you mean by "exit"? Does the app crash or does it exit normally? If it crashes then there's probably a serious memory-related bug lurking somewhere. If it exits normally then you have to disable this behavior by trapping the appropriate event.
I solved it already, by handling the OnOK().
By default the ok button of a dialog based app exits, and by default, its the active control.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center