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.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL