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 <Peter proteindiscovery.com>
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=c
ombobox+enter+key+c%23&ie=utf-8&oe=utf-8
>
&aq=t&rls=org.mozilla:en-US:official&client=fire
fox-a<http://www.google.com/s
earch?q=combobox+enter+key+c%23&ie=utf-8&oe=utf-8&am
p;aq=t&rls=org.mozilla:en-US:official&client=firefox
-a>
>
> Peter
>
>
> -----Original Message-----
> From: Discussion of advanced .NET topics.
> [mailto:ADVANCED-DOTNET DISCUSS.DEVELOP.COM] 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
> <Peter proteindiscovery.com>
> 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
|