2 things on selecting: 1. use CB_SELECTSTRING 2. send message of CBN_SELCHANGE to notify window.
the second is important in that many dialogs/windows want that notification to perform other stuff on the window. eg, selecting a printer will change what default/min margins are allowed. Adding one is just a CB_ADDSTRING. You probably want to try a 'select', and if it returns -1, then add it. HTH... -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Millham Sent: Sunday, September 19, 2004 8:17 PM To: perl-win32-gui-users Subject: [perl-win32-gui-users] Combobox and KeyPress Is there a way to detect the KeyPress event for a Combobox? Or am I going about what I want to do wrong. I have a Combobox that is populated from a database. What I'm trying to do is to be able to just select the item like normal with a mouse click, or to be able to type in the first few letters and have the matching item selected. I'd also like to be able to enter a non-matching entry that would then be added to the database. Is this possible with a Combobox? Brian Millham [EMAIL PROTECTED] --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 0438-3, 09/17/2004 Tested on: 9/19/2004 8:17:22 PM avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users