Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / February 2005

Tip: Looking for answers? Try searching our database.

textbox.keypress problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WM - 26 Feb 2005 19:41 GMT
I am trying to use a kepress event on a simple textbox. I want to be able to
capture the enter key when using a handheld with a keypad. I want to be able
to just jump to the next textbox or comobox like any other desktop program. I
cant seam to get the event to fire. I have tried putting other things before
the ife.keychar just to see if it goes into the code, nothing?  Is there
something else I am missing. I am in VS2003 when developing. Running on a
IPAQ PPC2002

This is the code.

Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs)
       If e.KeyChar = Chr(13) Then
           ComboBox3.Focus()
       End If
   End Sub
Sergey Bogdanov - 26 Feb 2005 20:44 GMT
I have not seen anything wrong unless you did not install the latest SP.
CF1.0 SP2 includes some fixes concerning a KeyPress event:
http://www.microsoft.com/downloads/details.aspx?familyid=359ea6da-fc5d-41cc-ac04
-7bb50a134556&displaylang=en


The latest SP at this moment is SP3:
http://www.microsoft.com/downloads/details.aspx?amp;displaylang=en&familyid=a5a0
2311-194b-4c00-b445-f92bec03032f&displaylang=en


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com

> I am trying to use a kepress event on a simple textbox. I want to be able to
> capture the enter key when using a handheld with a keypad. I want to be able
[quoted text clipped - 12 lines]
>         End If
>     End Sub
WM - 27 Feb 2005 14:03 GMT
Sergey,
Thanks for the info, I did update to the SP3. When I test in a plain form,
with just 2 textboxes it does work. On the form that I would like to use this
on I have a tabcontrol on the page. I have the textboxes on the tabcontrol,
all textboxes are on the same tab page. It's not firing when used there. Do
you know of any difference in a tab control?

> I have not seen anything wrong unless you did not install the latest SP.
> CF1.0 SP2 includes some fixes concerning a KeyPress event:
[quoted text clipped - 23 lines]
> >         End If
> >     End Sub
Sergey Bogdanov - 28 Feb 2005 06:14 GMT
There is no difference where a keypress event was fired. See your code
maybe you have set a handler for another control or something.

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com

> Sergey,
> Thanks for the info, I did update to the SP3. When I test in a plain form,
[quoted text clipped - 30 lines]
>>>        End If
>>>    End Sub
Serg Kuryata [MS] - 28 Feb 2005 19:05 GMT
I could not reproduce the problem that you described. I attached a file
with the source code that I used in my testing. Please let me know if it
works for you.

Hope this helps.
Thank you,
Serg.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Thread-Topic: textbox.keypress problem
| thread-index: AcUc1VV771zsVbwgQru45ZymwW0xJg==
| X-WBNR-Posting-Host: 216.144.36.68
| From: "=?Utf-8?B?V00=?=" <WM@discussions.microsoft.com>
| References:  <ADD780F6-5622-4DDA-9EB6-606F3F2ABC15@microsoft.com>
<#FYpnPEHFHA.3440@TK2MSFTNGP10.phx.gbl>
| Subject: Re: textbox.keypress problem
| Date: Sun, 27 Feb 2005 06:05:03 -0800
[quoted text clipped - 13 lines]
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.compactframework:71989
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
[quoted text clipped - 7 lines]
| > I have not seen anything wrong unless you did not install the latest SP.
| > CF1.0 SP2 includes some fixes concerning a KeyPress event:

http://www.microsoft.com/downloads/details.aspx?familyid=359ea6da-fc5d-41cc-
ac04-7bb50a134556&displaylang=en

| > The latest SP at this moment is SP3:

http://www.microsoft.com/downloads/details.aspx?amp;displaylang=en&familyid=
a5a02311-194b-4c00-b445-f92bec03032f&displaylang=en

| > Best regards,
| > Sergey Bogdanov
[quoted text clipped - 16 lines]
| > >         End If
| > >     End Sub

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.