can you provide more details as to what behavior that is missing? the code below does indeed fire upon enter, so there are more details I think you are looking for than Im aware of : ) that link below doesn't really provide more info.. in the first link that is returned in that search essentially does the same thing I sent you.
On Thu, Jul 3, 2008 at 12:06 PM, Peter Osucha <[EMAIL PROTECTED]> wrote: > That doesn't exactly work as desired, Adam. Here are a collection of > links discussing this - I haven't yet looked at one that help me out. > > The behavior I'm looking for is similar to when you press [ENTER] in one > of the Outlook drop down boxes on the main Outlook form. > > http://www.google.com/search?q=combobox+enter+key+c%23&ie=utf-8&oe=utf-8 > &aq=t&rls=org.mozilla:en-US:official&client=firefox-a<http://www.google.com/search?q=combobox+enter+key+c%23&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a> > > Peter > > > -----Original Message----- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Adam Tuliper > Sent: Thursday, July 03, 2008 2:30 PM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Re: [ADVANCED-DOTNET] form key handling > > just something like this would work.....no? > > private void comboBox1_KeyPress(object sender, KeyPressEventArgs > e) > { > MessageBox.Show( ((short)System.Windows.Forms.Keys.Enter == > (short)e.KeyChar).ToString()); > > } > > > > On Thu, Jul 3, 2008 at 10:38 AM, Peter Osucha > <[EMAIL PROTECTED]> > wrote: > > > Does anyone have a good link that shows how to handle an [ENTER] key > > press when a user types in a combobox? I've looked at several > examples > > that I googled and can't seem to make much sense out of them. > > > > Sincerely, > > Peter > > =================================== > This list is hosted by DevelopMentor(R) http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com > =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com