-
Newbie Ques: Why press "Enter" on combo box caused my application to exit?
Hi,
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.
Thanks.
-
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.
Danny Kalev
-
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|